diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-13 20:50:23 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-13 09:51:48 -0700 |
commit | 3d53fb9041d7d7bb8e1e1dd8b233cbed187933a7 (patch) | |
tree | 27dbcf752e33be2dc1e99ad7b7473d2d68cab1ce /drivers/staging/unisys/visorinput | |
parent | c3248fef2abc1dcaefc62b52766865a6a09e8c57 (diff) |
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>
Diffstat (limited to 'drivers/staging/unisys/visorinput')
-rw-r--r-- | drivers/staging/unisys/visorinput/visorinput.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c index 3a1b24fc4831..058ee91c2671 100644 --- a/drivers/staging/unisys/visorinput/visorinput.c +++ b/drivers/staging/unisys/visorinput/visorinput.c @@ -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; |