You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/06 20:18:45 UTC

[incubator-nuttx] 07/08: Fix Error: chip/lpc54_serial.c:1199:24: error: use of logical '&&' with constant operand

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 27a7ff41b525f7d699e6d62d417554d8b50ba637
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Nov 4 18:20:05 2022 +0800

    Fix Error: chip/lpc54_serial.c:1199:24: error: use of logical '&&' with constant operand
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/lpc54xx/lpc54_serial.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/lpc54xx/lpc54_serial.c b/arch/arm/src/lpc54xx/lpc54_serial.c
index 5c0de41abf..82145c0399 100644
--- a/arch/arm/src/lpc54xx/lpc54_serial.c
+++ b/arch/arm/src/lpc54xx/lpc54_serial.c
@@ -1196,7 +1196,7 @@ static int lpc54_receive(struct uart_dev_s *dev, unsigned int *status)
 
   if (status)
     {
-      *status = fiford && ~USART_FIFORD_RXDATA_MASK;
+      *status = fiford & ~USART_FIFORD_RXDATA_MASK;
     }
 
   /* Then return the actual received data. */