tty: vt: reflow csi_K()

Push cases one level left, according to coding style.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-17-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jiri Slaby (SUSE) 2024-01-22 12:03:30 +01:00 committed by Greg Kroah-Hartman
parent 7eb38a765e
commit 23672a572f

View File

@ -1555,20 +1555,20 @@ static void csi_K(struct vc_data *vc)
int offset;
switch (vc->vc_par[0]) {
case CSI_K_CURSOR_TO_LINEEND:
offset = 0;
count = vc->vc_cols - vc->state.x;
break;
case CSI_K_LINESTART_TO_CURSOR:
offset = -vc->state.x;
count = vc->state.x + 1;
break;
case CSI_K_LINE:
offset = -vc->state.x;
count = vc->vc_cols;
break;
default:
return;
case CSI_K_CURSOR_TO_LINEEND:
offset = 0;
count = vc->vc_cols - vc->state.x;
break;
case CSI_K_LINESTART_TO_CURSOR:
offset = -vc->state.x;
count = vc->state.x + 1;
break;
case CSI_K_LINE:
offset = -vc->state.x;
count = vc->vc_cols;
break;
default:
return;
}
vc_uniscr_clear_line(vc, vc->state.x + offset, count);
scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count);