]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/mcf.c
Merge branch 'omap-pool'
[linux-2.6-omap-h63xx.git] / drivers / serial / mcf.c
index 56841fe5f4839bd70d3e917bf32317ada965154e..0eefb07bebaf73708b7934588b54811bcc4615be 100644 (file)
@@ -513,7 +513,7 @@ static int __init mcf_console_setup(struct console *co, char *options)
        int parity = 'n';
        int flow = 'n';
 
-       if ((co->index >= 0) && (co->index <= MCF_MAXPORTS))
+       if ((co->index < 0) || (co->index >= MCF_MAXPORTS))
                co->index = 0;
        port = &mcf_ports[co->index].port;
        if (port->membase == 0)