staging: pi433: remove comparison with false
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Sun, 10 Dec 2017 14:31:20 +0000 (15:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2017 11:59:41 +0000 (12:59 +0100)
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>
drivers/staging/pi433/pi433_if.c

index 7964301..222fc7e 100644 (file)
@@ -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
                         */