Files
linux/drivers
Jiri Slaby (SUSE) fd5b40251a tty: vt: simplify ansi_control_string()
Given all the ANSI control states are sequential in the vc_ctl_state
enum, we can define first/last constants and use them in
ansi_control_string(). It makes the test simple and allows for removal
of the 'if' (which was unnecessary at all -- the 'return' should have
returned the 'if' content directly anyway).

And remove the useless comment -- it's clear from the function
prototype.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240202065608.14019-17-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-06 14:37:39 +00:00
..
2024-02-04 06:21:02 -08:00
2024-02-02 12:33:50 -05:00
2024-02-04 06:21:02 -08:00
2024-01-05 15:55:41 +05:30
2024-02-04 06:21:02 -08:00
2024-01-04 17:03:47 +01:00
2024-02-04 06:21:02 -08:00
2024-01-12 12:38:37 +01:00