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

Alexandre Julliard julliard at winehq.org
Fri Feb 22 15:22:10 CST 2019


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

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

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

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/oledb32/rowpos.c b/dlls/oledb32/rowpos.c
index 46904d3..c922f93 100644
--- a/dlls/oledb32/rowpos.c
+++ b/dlls/oledb32/rowpos.c
@@ -416,7 +416,7 @@ static HRESULT WINAPI rowpos_cp_Advise(IConnectionPoint *iface, IUnknown *unksin
     }
 
     This->sinks[i] = sink;
-    if (cookie) *cookie = i + 1;
+    *cookie = i + 1;
 
     return S_OK;
 }




More information about the wine-cvs mailing list