Commit 283a9e4b authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: wilc1000: Remove return variables from wilc_spi.c

Remove return variables from wilc_spi.c. Issue found with Coccinelle
using ret.cocci.
Signed-off-by: default avatarNishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95313752
...@@ -933,11 +933,9 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) ...@@ -933,11 +933,9 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
u32 irq_flags; u32 irq_flags;
int k = IRG_FLAGS_OFFSET + 5; int k = IRG_FLAGS_OFFSET + 5;
if (spi_priv->has_thrpt_enh) { if (spi_priv->has_thrpt_enh)
ret = spi_internal_read(wilc, 0xe840 - WILC_SPI_REG_BASE, return spi_internal_read(wilc, 0xe840 - WILC_SPI_REG_BASE,
int_status); int_status);
return ret;
}
ret = wilc_spi_read_reg(wilc, WILC_VMM_TO_HOST_SIZE, &byte_cnt); ret = wilc_spi_read_reg(wilc, WILC_VMM_TO_HOST_SIZE, &byte_cnt);
if (!ret) { if (!ret) {
dev_err(&spi->dev, dev_err(&spi->dev,
...@@ -982,9 +980,8 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val) ...@@ -982,9 +980,8 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val)
u32 tbl_ctl; u32 tbl_ctl;
if (spi_priv->has_thrpt_enh) { if (spi_priv->has_thrpt_enh) {
ret = spi_internal_write(wilc, 0xe844 - WILC_SPI_REG_BASE, return spi_internal_write(wilc, 0xe844 - WILC_SPI_REG_BASE,
val); val);
return ret;
} }
flags = val & (BIT(MAX_NUM_INT) - 1); flags = val & (BIT(MAX_NUM_INT) - 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment