Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
23672a57 7eb38a76

+14 -14
+14 -14
drivers/tty/vt/vt.c
··· 1555 1555 int offset; 1556 1556 1557 1557 switch (vc->vc_par[0]) { 1558 - case CSI_K_CURSOR_TO_LINEEND: 1559 - offset = 0; 1560 - count = vc->vc_cols - vc->state.x; 1561 - break; 1562 - case CSI_K_LINESTART_TO_CURSOR: 1563 - offset = -vc->state.x; 1564 - count = vc->state.x + 1; 1565 - break; 1566 - case CSI_K_LINE: 1567 - offset = -vc->state.x; 1568 - count = vc->vc_cols; 1569 - break; 1570 - default: 1571 - return; 1558 + case CSI_K_CURSOR_TO_LINEEND: 1559 + offset = 0; 1560 + count = vc->vc_cols - vc->state.x; 1561 + break; 1562 + case CSI_K_LINESTART_TO_CURSOR: 1563 + offset = -vc->state.x; 1564 + count = vc->state.x + 1; 1565 + break; 1566 + case CSI_K_LINE: 1567 + offset = -vc->state.x; 1568 + count = vc->vc_cols; 1569 + break; 1570 + default: 1571 + return; 1572 1572 } 1573 1573 vc_uniscr_clear_line(vc, vc->state.x + offset, count); 1574 1574 scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count);