]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tty: remove redundant condition checks
authorXichao Zhao <zhao.xichao@vivo.com>
Fri, 5 Sep 2025 09:13:21 +0000 (17:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:49:58 +0000 (15:49 +0200)
commitb601e1f41edd4667062aa7cccb4e5199814979a3
tree98b44662a80e5802f966894178c72a4b0905c9e4
parentda7e8b3823962b13e713d4891e136a261ed8e6a2
tty: remove redundant condition checks

Remove redundant condition checks and replace else if with else.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20250905091321.437476-1-zhao.xichao@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c
drivers/tty/serial/msm_serial.c