tty: vt: simplify some cases in tioclinux()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 20 Apr 2023 09:35:57 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 11:48:50 +0000 (13:48 +0200)
commit71ca6e4bf44f9a737f11e3f169430f81e9febd7b
tree433fdf64bd02f06789f08d81d30abe647c7042b9
parent6b97370b2cc6ef75acb72d651ef57041c8f1ece9
tty: vt: simplify some cases in tioclinux()

There is no need to set "ret" variable and break. We can simply return
from the cases. This makes the code much easier to follow, as many else
branches are redundant.

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