From: Chaehyun Lim Date: Mon, 2 May 2016 10:47:52 +0000 (+0900) Subject: staging: wilc1000: fix comparison style of if statement in handle_get_ip_address X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=abfaf5fcd8be6c014d773139390d54d4611ef596;p=deliverable%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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"); }