Revert "serial: 8250: Don't crash when nr_uarts is 0"
authorpopcornmix <popcornmix@gmail.com>
Fri, 5 May 2017 12:23:10 +0000 (13:23 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:11 +0000 (15:54 +0100)
This reverts commit 9c297d9ebd0d8c6d5e6e8675d527d6a221613abc.

drivers/tty/serial/8250/8250_core.c

index cf9c7d2e3f95e1a19410247a89c2e49c1a2747a8..e8819aa20415603c80547e382838a8fa3ce54792 100644 (file)
@@ -509,8 +509,6 @@ static void __init serial8250_isa_init_ports(void)
 
        if (nr_uarts > UART_NR)
                nr_uarts = UART_NR;
-       if (!nr_uarts)
-               return;
 
        for (i = 0; i < nr_uarts; i++) {
                struct uart_8250_port *up = &serial8250_ports[i];