]> git.baikalelectronics.ru Git - kernel.git/commit
serial: Delete dead code for CIR serial ports
authorMatthias Brugger <mbrugger@suse.com>
Fri, 16 Jun 2017 15:17:14 +0000 (17:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jun 2017 02:24:15 +0000 (10:24 +0800)
commit916f685c019e2682e254e4301490bde718d12f21
tree3dfa307fe1350fb4cad9c4f969aea1cba801126b
parent4ec26437dfa622e627e9a9f70ffc5ae93e803770
serial: Delete dead code for CIR serial ports

Commit ac541f22b3ae ("serial: don't register CIR serial ports") adds a
check for PORT_8250_CIR to serial8250_register_8250_port(). But the code
isn't needed as the function never takes the branch when the port is CIR
serial port.

This patch deletes the dead code.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c