Commit 3d53fb90 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

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: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3248fef
...@@ -461,20 +461,16 @@ handle_locking_key(struct input_dev *visorinput_dev, ...@@ -461,20 +461,16 @@ handle_locking_key(struct input_dev *visorinput_dev,
int keycode, int desired_state) int keycode, int desired_state)
{ {
int led; int led;
char *sled;
switch (keycode) { switch (keycode) {
case KEY_CAPSLOCK: case KEY_CAPSLOCK:
led = LED_CAPSL; led = LED_CAPSL;
sled = "CAP";
break; break;
case KEY_SCROLLLOCK: case KEY_SCROLLLOCK:
led = LED_SCROLLL; led = LED_SCROLLL;
sled = "SCR";
break; break;
case KEY_NUMLOCK: case KEY_NUMLOCK:
led = LED_NUML; led = LED_NUML;
sled = "NUM";
break; break;
default: default:
led = -1; led = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment