]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: drop redundant sysrq checks
authorJohan Hovold <johan@kernel.org>
Wed, 10 Jun 2020 15:22:32 +0000 (17:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jun 2020 14:16:37 +0000 (16:16 +0200)
commitb0aaad23192b6e4cc5128518040e1b07d6bdac71
tree08c391cfb16108cc9adbc18cbe20d11485046bf2
parentb179b6d7266fef4a0e267d924b80a49051886cf2
serial: core: drop redundant sysrq checks

The sysrq timestamp will never be set unless port->has_sysrq is set (see
uart_handle_break()) so drop the redundant checks that were added by
commit 083d55f7a6a9 ("serial_core: Un-ifdef sysrq SUPPORT_SYSRQ").

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Link: https://lore.kernel.org/r/20200610152232.16925-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h