staging: wilc1000: fix comparison style of if statement in handle_get_ip_address
This patch changes conditional comparison of if statement as if (ret) instead of using if (ret != 0) Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f2f5d5ec1
commit
abfaf5fcd8
@ -394,7 +394,7 @@ static void handle_get_ip_address(struct wilc_vif *vif, u8 idx)
|
||||
if (memcmp(get_ip[idx], set_ip[idx], IP_ALEN) != 0)
|
||||
wilc_setup_ipaddress(vif, set_ip[idx], idx);
|
||||
|
||||
if (ret != 0)
|
||||
if (ret)
|
||||
netdev_err(vif->ndev, "Failed to get IP address\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user