msxml3: Remove redundant "not NULL" check of the punk arg.
Michael Stefaniuc
mstefani at redhat.de
Wed May 19 18:15:22 CDT 2010
It is known to be non-NULL in the affected code path. Found by
coccicheck.
---
dlls/msxml3/domdoc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c
index aae8a34..d72d20b 100644
--- a/dlls/msxml3/domdoc.c
+++ b/dlls/msxml3/domdoc.c
@@ -2177,8 +2177,7 @@ xmldoc_SetSite( IObjectWithSite *iface, IUnknown *punk )
return S_OK;
}
- if ( punk )
- IUnknown_AddRef( punk );
+ IUnknown_AddRef( punk );
if(This->site)
IUnknown_Release( This->site );
--
1.7.1
More information about the wine-patches
mailing list