From: Ajay Singh Date: Mon, 23 Apr 2018 16:33:29 +0000 (+0530) Subject: staging: wilc1000: remove the use of goto label in wilc_spi_read_int() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b417dcd75f9739fb8992b929bdc3e9648aaac963;p=openwrt%2Fstaging%2Fblogic.git staging: wilc1000: remove the use of goto label in wilc_spi_read_int() In wilc_spi_read_int() 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 57e4f11aba5e..1db28141db11 100644 --- a/drivers/staging/wilc1000/wilc_spi.c +++ b/drivers/staging/wilc1000/wilc_spi.c @@ -946,7 +946,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) 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; @@ -976,7 +976,6 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) *int_status = tmp; -_fail_: return ret; }