Michael Stefaniuc : mshtml: Remove redundant "not NULL" check for the p arg (coccicheck).

Alexandre Julliard julliard at winehq.org
Mon May 17 09:39:30 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon May 17 01:12:18 2010 +0200

mshtml: Remove redundant "not NULL" check for the p arg (coccicheck).

---

 dlls/mshtml/htmlelem.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index b0cb791..5bf2915 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -1803,13 +1803,11 @@ static HRESULT WINAPI HTMLFiltersCollection_get_length(IHTMLFiltersCollection *i
 {
     HTMLFiltersCollection *This = HTMLFILTERSCOLLECTION_THIS(iface);
 
-    FIXME("(%p)->(%p) Always returning 0\n", This, p);
-
-	if(!p)
-		return E_POINTER;
+    if(!p)
+        return E_POINTER;
 
-    if(p)
-        *p = 0;
+    FIXME("(%p)->(%p) Always returning 0\n", This, p);
+    *p = 0;
 
     return S_OK;
 }




More information about the wine-cvs mailing list