Skip to contentSkip to conversation

staging: pi433: Remove unused variable.

PATCH New Bhagyashri Dighole 1 participant 1 message Mar 13, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: pi433: Remove unused variable.

Remove unused variable which is used to store return value, Detected by Coccinelle semantic patch returnvar.cocci

---
 drivers/staging/pi433/rf69.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/pi433/rf69.c +1 -3
index e19b9ce..340ffa7 100644
@@ -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)
Signature · 1 line
2.7.4