mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 04:09:18 -04:00
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 <ajay.kathat@microchip.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e0f2e9ce7e
commit
a7d355f399
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user