mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 04:24:45 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user