From 8a200f79f7554a705e500ffdc54767155c22040b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 24 Nov 2025 17:35:33 -0600 Subject: [PATCH] bsps/m68k/uC5282/console/console.c: Address type-limits warnings These changes were made to address GCC -Wtype-limits warnings. In this case, the type was unsigned and there was no need to compare it being >= 0. --- bsps/m68k/uC5282/console/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/m68k/uC5282/console/console.c b/bsps/m68k/uC5282/console/console.c index 08bf5f1871..3ab26fd42a 100644 --- a/bsps/m68k/uC5282/console/console.c +++ b/bsps/m68k/uC5282/console/console.c @@ -715,7 +715,7 @@ rtems_device_driver console_open( }; /* open the port depending on the minor device number */ - if ( ( minor >= 0 ) && ( minor < MAX_UART_INFO ) ) + if ( minor < MAX_UART_INFO ) { info = &IntUartInfo[minor]; switch ( info->iomode )