From: Ajay Singh Date: Mon, 23 Apr 2018 16:33:28 +0000 (+0530) Subject: staging: wilc1000: remove the use of goto label in wilc_spi_read_size() X-Git-Tag: v4.19~841^2~480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7d355f399cb225fe9b79c3ba4a78cd99903c810;p=platform%2Fkernel%2Flinux-rpi3.git staging: wilc1000: remove the use of goto label in wilc_spi_read_size() 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 Signed-off-by: Greg Kroah-Hartman --- 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; }