Return-path: Received: from esa3.microchip.iphmx.com ([68.232.153.233]:52284 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932106AbeDWQfw (ORCPT ); Mon, 23 Apr 2018 12:35:52 -0400 From: Ajay Singh To: CC: , , , , , , , Ajay Singh Subject: [RESEND 26/33] staging: wilc1000: remove the use of goto label in wilc_spi_read_size() Date: Mon, 23 Apr 2018 22:03:28 +0530 Message-ID: <1524501215-4963-27-git-send-email-ajay.kathat@microchip.com> (sfid-20180423_183558_078905_4B572331) In-Reply-To: <1524501215-4963-1-git-send-email-ajay.kathat@microchip.com> References: <1524501215-4963-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: In wilc_spi_read_size() remove the use of goto label '_fail_'. Changes are done to avoid the use of '_' in label name. Signed-off-by: Ajay Singh Reviewed-by: Claudiu Beznea --- drivers/staging/wilc1000/wilc_spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 3e3c774..57e4f11 100644 --- a/drivers/staging/wilc1000/wilc_spi.c +++ b/drivers/staging/wilc1000/wilc_spi.c @@ -917,13 +917,12 @@ static int wilc_spi_read_size(struct wilc *wilc, u32 *size) if (!ret) { dev_err(&spi->dev, "Failed read WILC_VMM_TO_HOST_SIZE ...\n"); - goto _fail_; + return ret; } tmp = (byte_cnt >> 2) & IRQ_DMA_WD_CNT_MASK; *size = tmp; } -_fail_: return ret; } -- 2.7.4