Michael Stefaniuc : msxml3: Remove redundant not-NULL check (coccinellery) .

Alexandre Julliard julliard at winehq.org
Fri Mar 1 16:42:09 CST 2019


Module: wine
Branch: master
Commit: b3a464a83559fc06cd7e15a0001bc278509efede
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b3a464a83559fc06cd7e15a0001bc278509efede

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Feb 21 20:35:34 2019 +0100

msxml3: Remove redundant not-NULL check (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/selection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/selection.c b/dlls/msxml3/selection.c
index b7c560a..31be4d8 100644
--- a/dlls/msxml3/selection.c
+++ b/dlls/msxml3/selection.c
@@ -831,7 +831,7 @@ HRESULT create_selection(xmlNodePtr node, xmlChar* query, IXMLDOMNodeList **out)
     TRACE("found %d matches\n", xmlXPathNodeSetGetLength(This->result->nodesetval));
 
 cleanup:
-    if (This && FAILED(hr))
+    if (FAILED(hr))
         IXMLDOMSelection_Release( &This->IXMLDOMSelection_iface );
     xmlXPathFreeContext(ctxt);
     return hr;




More information about the wine-cvs mailing list