Skip to content

Commit

Permalink
Revert "serial: 8250: Don't crash when nr_uarts is 0"
Browse files Browse the repository at this point in the history
This reverts commit 9c297d9.
  • Loading branch information
popcornmix committed May 5, 2017
1 parent 26ff5b0 commit b2dded0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/tty/serial/8250/8250_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b2dded0

Please sign in to comment.