strmbase: Remove an always true if condition (coccinellery)

Michael Stefaniuc mstefani at redhat.de
Wed Feb 15 03:52:26 CST 2017


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/strmbase/video.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/strmbase/video.c b/dlls/strmbase/video.c
index 0f05d63..a03ba55 100644
--- a/dlls/strmbase/video.c
+++ b/dlls/strmbase/video.c
@@ -569,8 +569,7 @@ HRESULT WINAPI BaseControlVideoImpl_GetVideoPaletteEntries(IBasicVideo *iface, L
     if (!pRetrieved || !pPalette)
         return E_POINTER;
 
-    if (pRetrieved)
-        *pRetrieved = 0;
+    *pRetrieved = 0;
     return VFW_E_NO_PALETTE_AVAILABLE;
 }
 
-- 
2.9.3



More information about the wine-patches mailing list