aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/host_interface.c
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2018-04-23 22:03:30 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-25 15:54:16 +0200
commitb2d26c8ccce45943f662308d78d6dc13409c048e (patch)
treedeb19ae94ba7c8227dd6a9a85945fa1bf1e2d191 /drivers/staging/wilc1000/host_interface.c
parentstaging: wilc1000: remove the use of goto label in wilc_spi_read_int() (diff)
downloadlinux-dev-b2d26c8ccce45943f662308d78d6dc13409c048e.tar.xz
linux-dev-b2d26c8ccce45943f662308d78d6dc13409c048e.zip
staging: wilc1000: remove goto label '_done_' in handle_listen_state_expired()
Remove the use of goto label '_done_' in handle_listen_state_expired(). Changes are done to avoid the use of '_' in label name. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 1117705b8a34..65caa6d0362c 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -2332,7 +2332,7 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif,
kfree(wid.val);
if (result != 0) {
netdev_err(vif->ndev, "Failed to set remain channel\n");
- goto _done_;
+ return result;
}
if (hif_drv->remain_on_ch.expired) {
@@ -2345,7 +2345,6 @@ static u32 handle_listen_state_expired(struct wilc_vif *vif,
result = -EFAULT;
}
-_done_:
return result;
}