diff options
-rw-r--r-- | drivers/serial/mcf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/mcf.c b/drivers/serial/mcf.c index 56841fe5f483..0eefb07bebaf 100644 --- a/drivers/serial/mcf.c +++ b/drivers/serial/mcf.c | |||
@@ -513,7 +513,7 @@ static int __init mcf_console_setup(struct console *co, char *options) | |||
513 | int parity = 'n'; | 513 | int parity = 'n'; |
514 | int flow = 'n'; | 514 | int flow = 'n'; |
515 | 515 | ||
516 | if ((co->index >= 0) && (co->index <= MCF_MAXPORTS)) | 516 | if ((co->index < 0) || (co->index >= MCF_MAXPORTS)) |
517 | co->index = 0; | 517 | co->index = 0; |
518 | port = &mcf_ports[co->index].port; | 518 | port = &mcf_ports[co->index].port; |
519 | if (port->membase == 0) | 519 | if (port->membase == 0) |