From: Shivani Bhardwaj Date: Tue, 13 Oct 2015 15:20:23 +0000 (+0530) Subject: Staging: unisys: visorinput: Remove unused code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3d53fb9041d7d7bb8e1e1dd8b233cbed187933a7;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;