]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tty: Remove dead code
authorAndreas Platschek <andi.platschek@gmail.com>
Fri, 26 Jul 2013 04:46:37 +0000 (06:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 23:19:48 +0000 (16:19 -0700)
commitcf940ebe98e693aec2d10f9af2fb84eb55234e3c
tree988fddbce4712cdd7425fb1c6fba802f8b34be3f
parent17fae28efe8f460918e13aedd7163690206c682d
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>
drivers/tty/vt/keyboard.c
include/linux/kbd_kern.h