xen/char: scif-uart: Remove useless ASSERT condition

cnt is unsigned, so always >=0

Coverity-ID: 1381848
Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>
[julien: Update commit title]
Acked-by: Julien Grall <julien@xen.org>
This commit is contained in:
Artem Mygaiev authored and Julien Grall committed 2020-01-18 12:57:15 +00:00
1 parent 17a6c03701
commit 1eeedaf5a0
1 file changed
+1 -1
+1 -1
View File
@@ -205,7 +205,7 @@ static int scif_uart_tx_ready(struct serial_port *port)
/* Check number of data bytes stored in TX FIFO */
cnt = scif_readw(uart, SCIF_SCFDR) >> 8;
ASSERT( cnt >= 0 && cnt <= params->fifo_size );
ASSERT( cnt <= params->fifo_size );
return (params->fifo_size - cnt);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.