]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kdb: remove redundant check for scancode 0xe0
authorColin Ian King <colin.i.king@gmail.com>
Wed, 7 May 2025 10:43:37 +0000 (11:43 +0100)
committerDaniel Thompson (RISCstar) <danielt@kernel.org>
Sat, 20 Sep 2025 20:19:09 +0000 (21:19 +0100)
The check for scancode 0xe0 is always false because earlier on
the scan code is masked with 0x7f so there are never going to
be values greater than 0x7f. Remove the redundant check.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
kernel/debug/kdb/kdb_keyboard.c

index 3a74604fdb8a7fecd4f5eb0cf1ff70b2a5a217c3..386d30e530b784e326155c8657d50d0dd91d6fe6 100644 (file)
@@ -145,9 +145,6 @@ int kdb_get_kbd_char(void)
                return CTRL('F');
        }
 
-       if (scancode == 0xe0)
-               return -1;
-
        /*
         * For Japanese 86/106 keyboards
         *      See comment in drivers/char/pc_keyb.c.