diff options
author | Chaehyun Lim <chaehyun.lim@gmail.com> | 2016-05-02 19:47:52 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-03 14:05:59 -0700 |
commit | abfaf5fcd8be6c014d773139390d54d4611ef596 (patch) | |
tree | 3d1830a87076cd0ad0efd6ee10062ac27467bf15 /drivers/staging/wilc1000/host_interface.c | |
parent | 6f2f5d5ec1091bb54e913c3c26bad5ff6e8f9dd0 (diff) | |
download | op-kernel-dev-abfaf5fcd8be6c014d773139390d54d4611ef596.zip op-kernel-dev-abfaf5fcd8be6c014d773139390d54d4611ef596.tar.gz |
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/host_interface.c')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 1d48214..8a269fd 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"); } |