summaryrefslogtreecommitdiffstats
path: root/Documentation/printk-formats.txt
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-01-22 18:24:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-02 19:11:27 +0100
commitb164c9721e3ea4c08a4738cd4d0538bbb0c24419 (patch)
tree7d1705670475dea2d78db62f72f02f1708a03576 /Documentation/printk-formats.txt
parentSpecify PCI based UART for earlyprintk (diff)
downloadlinux-b164c9721e3ea4c08a4738cd4d0538bbb0c24419.tar.xz
linux-b164c9721e3ea4c08a4738cd4d0538bbb0c24419.zip
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>
Diffstat (limited to 'Documentation/printk-formats.txt')
0 files changed, 0 insertions, 0 deletions