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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-19 00:06:21 +01:00 committed by Alexandre Julliard
parent 39698f5468
commit c6ecb1b6a4
1 changed files with 2 additions and 5 deletions

View File

@ -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;
}