Skip to content

Commit fdbdd0c

Browse files
ColinIanKingdaniel-thompson
authored andcommitted
kdb: remove redundant check for scancode 0xe0
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>
1 parent 0c28a23 commit fdbdd0c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

kernel/debug/kdb/kdb_keyboard.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ int kdb_get_kbd_char(void)
145145
return CTRL('F');
146146
}
147147

148-
if (scancode == 0xe0)
149-
return -1;
150-
151148
/*
152149
* For Japanese 86/106 keyboards
153150
* See comment in drivers/char/pc_keyb.c.

0 commit comments

Comments
 (0)