diff options
author | Jiri Slaby <jslaby@suse.cz> | 2015-05-05 04:09:53 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-07 04:33:58 -0400 |
commit | c6f2104caaf00720a3a7a456af07f93a160693af (patch) | |
tree | 00cdd597af619f8b24f2532e0acfba1dc5d9b6bd /drivers/hid/hid-prodikeys.c | |
parent | d6ea2f88ac3659b799d8079a4fbda4f8faf6ff90 (diff) |
HID: prodikeys: remove unused variable
'key' is set but never used in the first loop. So remove the set.
And indent the re-set of pm->last_key properly.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-prodikeys.c')
-rw-r--r-- | drivers/hid/hid-prodikeys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c index 91fab975063c..e3e98ccf137b 100644 --- a/drivers/hid/hid-prodikeys.c +++ b/drivers/hid/hid-prodikeys.c | |||
@@ -395,11 +395,10 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data) | |||
395 | 395 | ||
396 | /* break keys */ | 396 | /* break keys */ |
397 | for (bit_index = 0; bit_index < 24; bit_index++) { | 397 | for (bit_index = 0; bit_index < 24; bit_index++) { |
398 | key = pm->last_key[bit_index]; | ||
399 | if (!((0x01 << bit_index) & bit_mask)) { | 398 | if (!((0x01 << bit_index) & bit_mask)) { |
400 | input_event(pm->input_ep82, EV_KEY, | 399 | input_event(pm->input_ep82, EV_KEY, |
401 | pm->last_key[bit_index], 0); | 400 | pm->last_key[bit_index], 0); |
402 | pm->last_key[bit_index] = 0; | 401 | pm->last_key[bit_index] = 0; |
403 | } | 402 | } |
404 | } | 403 | } |
405 | 404 | ||