Michael Stefaniuc : hnetcfg: Remove redundant "not NULL" check ( coccinellery).

Alexandre Julliard julliard at winehq.org
Tue Feb 19 15:29:33 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Feb 19 00:06:21 2019 +0100

hnetcfg: 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/hnetcfg/policy.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/hnetcfg/policy.c b/dlls/hnetcfg/policy.c
index c2f3252..53f39ae 100644
--- a/dlls/hnetcfg/policy.c
+++ b/dlls/hnetcfg/policy.c
@@ -641,11 +641,8 @@ static HRESULT WINAPI fwpolicy2_get_Rules(INetFwPolicy2 *iface, INetFwRules **ru
     if(!rules)
         return E_POINTER;
 
-    if(rules)
-    {
-        *rules = This->fw_policy2_rules;
-        INetFwRules_AddRef(This->fw_policy2_rules);
-    }
+    *rules = This->fw_policy2_rules;
+    INetFwRules_AddRef(This->fw_policy2_rules);
 
     return S_OK;
 }




More information about the wine-cvs mailing list