소스 검색

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 7 년 전
부모
커밋
de71b5bd5a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]);
 		disable_irq(device->irq_num[DIO0]);
 		device->tx_active = true;
 		device->tx_active = true;
 
 
-		if (device->rx_active && rx_interrupted == false) {
+		if (device->rx_active && !rx_interrupted) {
 			/* rx is currently waiting for a telegram;
 			/* rx is currently waiting for a telegram;
 			 * we need to set the radio module to standby
 			 * we need to set the radio module to standby
 			 */
 			 */