staging: pi433: Remove unused variable.
authorBhagyashri Dighole <digholebhagyashri@gmail.com>
Wed, 13 Mar 2019 19:07:17 +0000 (00:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:06:03 +0000 (07:06 +0100)
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>
drivers/staging/pi433/rf69.c

index e19b9ce..340ffa7 100644 (file)
@@ -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)