sysrq: Remove sysrq_handler_registered
commitf06327d15a1a6f92ca947adb2f0059425885caae
authorDmitry Safonov <dima@arista.com>
Fri, 13 Dec 2019 00:06:00 +0000 (13 00:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 13:46:23 +0000 (17 14:46 +0100)
tree851db075ccc70a2c0c17a07bb61287b2ba7106a6
parent4484aa800ac588a1fe2175cd53076c21067f44b4
sysrq: Remove sysrq_handler_registered

sysrq_toggle_support() can be called in parallel, in return calling
input_(un)register_handler(), which fortunately is safe to call
in parallel and regardless of registered/unregistered status of
sysrq_handler.
Remove sysrq_handler_registered as it doesn't have any function there
and may confuse reader about possible race.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20191213000657.931618-2-dima@arista.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/sysrq.c