diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2015-01-22 12:24:25 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-02 10:11:27 -0800 |
commit | b164c9721e3ea4c08a4738cd4d0538bbb0c24419 (patch) | |
tree | 7d1705670475dea2d78db62f72f02f1708a03576 /arch/m68k/fpsp040/bindec.S | |
parent | ea9e9d8029020d438b0717ffddf65140fda16051 (diff) | |
download | linux-b164c9721e3ea4c08a4738cd4d0538bbb0c24419.tar.bz2 |
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 'arch/m68k/fpsp040/bindec.S')
0 files changed, 0 insertions, 0 deletions