tty: Remove dead code
-> The ledptrs[] array is never initialized. -> There is no place where kbd->ledmode is set to LED_SHOW_MEM therefore the if statement does not make much sense. -> Since LED_SHOW_MEM is not used, it can be removed from the header file as well. Signed-off-by: Andreas Platschek <andi.platschek@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
17fae28efe
commit
cf940ebe98
@@ -36,10 +36,9 @@ struct kbd_struct {
|
||||
#define VC_CTRLRLOCK KG_CTRLR /* ctrlr lock mode */
|
||||
unsigned char slockstate; /* for `sticky' Shift, Ctrl, etc. */
|
||||
|
||||
unsigned char ledmode:2; /* one 2-bit value */
|
||||
unsigned char ledmode:1;
|
||||
#define LED_SHOW_FLAGS 0 /* traditional state */
|
||||
#define LED_SHOW_IOCTL 1 /* only change leds upon ioctl */
|
||||
#define LED_SHOW_MEM 2 /* `heartbeat': peek into memory */
|
||||
|
||||
unsigned char ledflagstate:4; /* flags, not lights */
|
||||
unsigned char default_ledflagstate:4;
|
||||
|
Reference in New Issue
Block a user