From c25be2fe81ad57d6c1de61d435bd86e15e37c7dd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 24 Nov 2025 17:34:15 -0600 Subject: [PATCH] bsps/m68k/genmcf548x/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/genmcf548x/console/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/m68k/genmcf548x/console/console.c b/bsps/m68k/genmcf548x/console/console.c index 4bb8e3dd5b..4c2618518b 100644 --- a/bsps/m68k/genmcf548x/console/console.c +++ b/bsps/m68k/genmcf548x/console/console.c @@ -781,7 +781,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 )