tty: vt: put cases on separate lines
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Fri, 2 Feb 2024 06:55:55 +0000 (07:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Feb 2024 14:37:38 +0000 (14:37 +0000)
Some cases of the CSI switch are stuffed on one line. Put them all to a
separate line as is dictated by the coding style (and for better
readability).

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

index c072007807e132178a6f0a5b2758d72edb14bf60..42bc0957a654de7c668fb11e0549862993b9e832 100644 (file)
@@ -2437,7 +2437,8 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
                        return;
 
                switch(c) {
-               case 'G': case '`':
+               case 'G':
+               case '`':
                        if (vc->vc_par[0])
                                vc->vc_par[0]--;
                        gotoxy(vc, vc->vc_par[0], vc->state.y);
@@ -2447,12 +2448,14 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
                                vc->vc_par[0]++;
                        gotoxy(vc, vc->state.x, vc->state.y - vc->vc_par[0]);
                        return;
-               case 'B': case 'e':
+               case 'B':
+               case 'e':
                        if (!vc->vc_par[0])
                                vc->vc_par[0]++;
                        gotoxy(vc, vc->state.x, vc->state.y + vc->vc_par[0]);
                        return;
-               case 'C': case 'a':
+               case 'C':
+               case 'a':
                        if (!vc->vc_par[0])
                                vc->vc_par[0]++;
                        gotoxy(vc, vc->state.x + vc->vc_par[0], vc->state.y);
@@ -2477,7 +2480,8 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
                                vc->vc_par[0]--;
                        gotoxay(vc, vc->state.x ,vc->vc_par[0]);
                        return;
-               case 'H': case 'f':
+               case 'H':
+               case 'f':
                        if (vc->vc_par[0])
                                vc->vc_par[0]--;
                        if (vc->vc_par[1])