]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: simplify throttling using guard()s
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Fri, 25 Apr 2025 11:13:10 +0000 (13:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 11:46:30 +0000 (13:46 +0200)
commit3eabc1a34b95c39c698fd659babdfd9af05ef845
tree7318b7e84b7e5d20597420de7046c6342a706906
parente6afad4587c9b40a98cf26e73c55a2fb953ee6dd
tty: simplify throttling using guard()s

tty_throttle_safe() and tty_unthrottle_safe can be made less convoluted
using guard()s. Switch them.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250425111315.1036184-2-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ioctl.c