Commit 23672a57 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman

tty: vt: reflow csi_K()

Push cases one level left, according to coding style.
Signed-off-by: default avatar"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.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7eb38a76
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment