aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2023-07-12 08:18:05 +0000
committerGreg Kroah-Hartman <[email protected]>2023-07-25 17:21:03 +0000
commita27f3b72337dd6884a5c8761574503cfdd9cf37e (patch)
tree5a49770bd6c762b37b0e10f99341bf3fd8c7f6e0 /drivers/tty/serial/sccnxp.c
parenttty: sysrq: switch the rest of keys to u8 (diff)
downloadkernel-a27f3b72337dd6884a5c8761574503cfdd9cf37e.tar.gz
kernel-a27f3b72337dd6884a5c8761574503cfdd9cf37e.zip
tty: sysrq: use switch in sysrq_key_table_key2index()
Using switch with range cases makes the code more aligned and readable. Expand also that 36 as explicit addition of 10 + 26 to make the source of the constant more obvious. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions