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

Michael Stefaniuc mstefani at redhat.de
Sun May 16 18:12:18 CDT 2010


Also cleanup the semi-stub a little.
---
 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;
 }
-- 
1.7.1



More information about the wine-patches mailing list