aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorGravatar Jiri Slaby (SUSE) <jirislaby@kernel.org> 2024-02-02 07:55:51 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-02-06 14:37:37 +0000
commit9abe9bf5741932a4bb7d4959d1bc53715248686c (patch)
tree7b1eae75b3140848c2ffadefefa315b2f594dfad /drivers/tty
parenttty: vt: split DEC CSI+h/l handling into csi_DEC_hl() (diff)
downloadlinux-9abe9bf5741932a4bb7d4959d1bc53715248686c.tar.gz
linux-9abe9bf5741932a4bb7d4959d1bc53715248686c.tar.bz2
linux-9abe9bf5741932a4bb7d4959d1bc53715248686c.zip
tty: vt: remove unneeded assignment of EPecma to vc_priv
vc_data::vc_priv is _always_ assigned before the ESgetpars case is entered (in ESsquare). Therefore, there is no need to reset it when leaving the ESgetpars case. Note the state is set to ESnormal few lines above, so ESgetpars is entered only by the next CSI. Therefore, this obfuscation can be removed. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20240202065608.14019-6-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/vt/vt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index d04dbafc0517..69ebce0878f2 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -2421,10 +2421,9 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
}
return;
}
- if (vc->vc_priv != EPecma) {
- vc->vc_priv = EPecma;
+ if (vc->vc_priv != EPecma)
return;
- }
+
switch(c) {
case 'G': case '`':
if (vc->vc_par[0])