* [PATCH] Staging: unisys: visorinput: Remove unused code
@ 2015-10-13 15:20 Shivani Bhardwaj
0 siblings, 0 replies; only message in thread
From: Shivani Bhardwaj @ 2015-10-13 15:20 UTC (permalink / raw)
To: outreachy-kernel
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>
---
drivers/staging/unisys/visorinput/visorinput.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drivers/staging/unisys/visorinput/visorinput.c
index 3a1b24f..058ee91c 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;
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-13 15:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-13 15:20 [PATCH] Staging: unisys: visorinput: Remove unused code Shivani Bhardwaj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.