mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 12:41:34 +00:00
bsps/m68k/mcf5329/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.
This commit is contained in:
committed by
Gedare Bloom
parent
c25be2fe81
commit
0be36b694d
@@ -595,7 +595,7 @@ rtems_device_driver console_open(rtems_device_major_number major,
|
||||
};
|
||||
|
||||
/* 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) {
|
||||
case TERMIOS_POLLED:
|
||||
|
||||
Reference in New Issue
Block a user