Return-path: Received: from esa1.microchip.iphmx.com ([68.232.147.91]:64459 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753943AbeDRLlB (ORCPT ); Wed, 18 Apr 2018 07:41:01 -0400 From: Ajay Singh To: CC: , , , , , , , Ajay Singh Subject: [PATCH 17/22] staging: wilc1000: remove goto label '_done_' in handle_listen_state_expired() Date: Wed, 18 Apr 2018 17:09:19 +0530 Message-ID: <1524051564-15497-18-git-send-email-ajay.kathat@microchip.com> (sfid-20180418_134104_177899_1FD17075) In-Reply-To: <1524051564-15497-1-git-send-email-ajay.kathat@microchip.com> References: <1524051564-15497-1-git-send-email-ajay.kathat@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- drivers/staging/wilc1000/host_interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 1117705..65caa6d 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; } -- 2.7.4