diff options
author | Bhagyashri Dighole <digholebhagyashri@gmail.com> | 2019-03-13 22:07:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-18 09:06:03 +0300 |
commit | 3df3162f1d52c143f48fb213d8d2c7fcce5b41d5 (patch) | |
tree | 8c1f481e1e7b9c215029839ec3af7b0670365a4d /drivers/staging/pi433 | |
parent | 14e9bb7e9ea7dcbc3f28ef830c5ffc568445b0b7 (diff) | |
download | linux-3df3162f1d52c143f48fb213d8d2c7fcce5b41d5.tar.xz |
staging: pi433: Remove unused variable.
Remove unused variable which is used to store return value,
Detected by Coccinelle semantic patch returnvar.cocci
Signed-off-by: Bhagyashri Dighole <digholebhagyashri@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/rf69.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index e19b9ce794a8..340ffa7ccf18 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -624,9 +624,7 @@ int rf69_set_preamble_length(struct spi_device *spi, u16 preamble_length) retval = rf69_write_reg(spi, REG_PREAMBLE_MSB, msb); if (retval) return retval; - retval = rf69_write_reg(spi, REG_PREAMBLE_LSB, lsb); - - return retval; + return rf69_write_reg(spi, REG_PREAMBLE_LSB, lsb); } int rf69_enable_sync(struct spi_device *spi) |