mcf5235/console/console.c: Correct comparisons of different signedness

The GCC warning -Wsign-compare flagged these instances of comparing
signed and unsigned types. A common pair was size_t and int.
This commit is contained in:
Joel Sherrill
2025-11-06 10:20:02 -06:00
parent 0e20f50870
commit 38367143fe

View File

@@ -668,7 +668,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 )