Skip to contentSkip to conversation

Staging: unisys: visorinput: Remove unused code

PATCH New Shivani Bhardwaj 1 participant 1 message Oct 13, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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;
...+>

---
 drivers/staging/unisys/visorinput/visorinput.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/unisys/visorinput/visorinput.c +0 -4
index 3a1b24f..058ee91c 100644
@@ -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;
Signature · 1 line
2.1.0