Fix Error: chip/lpc54_serial.c:1199:24: error: use of logical '&&' with constant operand

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-04 18:20:05 +08:00 committed by Petro Karashchenko
parent 69dea8d329
commit 27a7ff41b5

View File

@ -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. */