2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 07:34:06 +08:00

Staging: unisys: visorinput: Remove unused code

Remove the code which is not used anywhere in the program.
Semantic patch used:

@@
type T;
identifier i;
constant C;
position p != e.p;
@@

- T i@p;
  <+... when != i
- i = C;
  ...+>

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shivani Bhardwaj 2015-10-13 20:50:23 +05:30 committed by Greg Kroah-Hartman
parent c3248fef2a
commit 3d53fb9041

View File

@ -461,20 +461,16 @@ handle_locking_key(struct input_dev *visorinput_dev,
int keycode, int desired_state)
{
int led;
char *sled;
switch (keycode) {
case KEY_CAPSLOCK:
led = LED_CAPSL;
sled = "CAP";
break;
case KEY_SCROLLLOCK:
led = LED_SCROLLL;
sled = "SCR";
break;
case KEY_NUMLOCK:
led = LED_NUML;
sled = "NUM";
break;
default:
led = -1;