]> Gentwo Git Trees - linux/.git/commit
tty: sysrq: delete unnecessary check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 6 Aug 2025 11:46:12 +0000 (14:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Aug 2025 15:42:26 +0000 (17:42 +0200)
commit96c08ff80b8fce45e49fee5eba4b40b1654eb5aa
treefec7f40304eb6eae9af0dc3b9687430925415ffa
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
tty: sysrq: delete unnecessary check

This code checks if (write) is true twice in a row.  It's more
readable to delete the first check.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/aJNAhHtKkhWjosDV@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/sysrq.c