Parcourir la source

staging: pi433: remove comparison with false

Fixes checkpatch warning for error prone comparison.

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Valentin Vidic il y a 7 ans
Parent
commit
de71b5bd5a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/staging/pi433/pi433_if.c

+ 1 - 1
drivers/staging/pi433/pi433_if.c

@@ -646,7 +646,7 @@ pi433_tx_thread(void *data)
 		disable_irq(device->irq_num[DIO0]);
 		device->tx_active = true;
 
-		if (device->rx_active && rx_interrupted == false) {
+		if (device->rx_active && !rx_interrupted) {
 			/* rx is currently waiting for a telegram;
 			 * we need to set the radio module to standby
 			 */