staging: wilc1000: fix comparison style of if statement in handle_get_ip_address
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 2 May 2016 10:47:52 +0000 (19:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:05:59 +0000 (14:05 -0700)
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>
drivers/staging/wilc1000/host_interface.c

index 1d48214b39a02faa956547a89297282d2c5c0dad..8a269fd19ede5335b5aeed6e2844d223b72823d2 100644 (file)
@@ -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");
 }