]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
staging: wilc1000: remove the use of goto label in wilc_spi_read_size()
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 23 Apr 2018 16:33:28 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:54:16 +0000 (15:54 +0200)
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 <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_spi.c

index 3e3c7742ea797673d763ecf1eee897a85ceadb00..57e4f11aba5ed7832eb2dc361870573259c071a6 100644 (file)
@@ -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;
 }