[PATCH] hnetcfg: Remove redundant "not NULL" check (coccinellery)
Michael Stefaniuc
mstefani at winehq.org
Mon Feb 18 17:06:21 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani 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 c2f32520bd..53f39ae46f 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;
}
--
2.20.1
More information about the wine-devel
mailing list