summaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2016-05-02 19:47:52 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-03 14:05:59 -0700
commitabfaf5fcd8be6c014d773139390d54d4611ef596 (patch)
tree3d1830a87076cd0ad0efd6ee10062ac27467bf15 /drivers/staging/wilc1000
parent6f2f5d5ec1091bb54e913c3c26bad5ff6e8f9dd0 (diff)
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>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/host_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 1d48214b39a0..8a269fd19ede 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -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");
}