Searched hist:b164c9721e3ea4c08a4738cd4d0538bbb0c24419 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/tty/serial/ |
H A D | serial_core.c | diff b164c9721e3ea4c08a4738cd4d0538bbb0c24419 Thu Jan 22 18:24:25 CET 2015 Peter Hurley <peter@hurleysoftware.com> serial: core: Simplify console suspend logic in uart_suspend_port()
When the uart port being suspended is a console and consoles are not suspending (kernel command line contains no_console_suspend), then no action is performed for that port, and the function can return early.
If the function has not returned early, then one of the conditions is not true, so the expression (console_suspend_enabled || !uart_console(uport)) must be true and can be eliminated.
Similarly, the expression (console_suspend_enabled && uart_console(uport)) simplifies to just uart_console(uport).
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|