mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 19:55:16 -05:00
Staging: pi433: Merge assignment with return value
Removes the unnecessary assignment of retval preceding
the return statement.
Detected using the following Coccinelle script:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Meghana Madhyastha <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0d27c94abb
commit
e2614ef1b2
1 changed files with 1 additions and 3 deletions
|
|
@ -690,9 +690,7 @@ int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength)
|
|||
/* transmit to chip */
|
||||
retval = WRITE_REG(REG_PREAMBLE_MSB, msb);
|
||||
if (retval) return retval;
|
||||
retval = WRITE_REG(REG_PREAMBLE_LSB, lsb);
|
||||
|
||||
return retval;
|
||||
return WRITE_REG(REG_PREAMBLE_LSB, lsb);
|
||||
}
|
||||
|
||||
int rf69_set_sync_enable(struct spi_device *spi, enum optionOnOff optionOnOff)
|
||||
|
|
|
|||
Loading…
Reference in a new issue