Skip to content

Commit c6f2104

Browse files
Jiri SlabyJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent d6ea2f8 commit c6f2104

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/hid/hid-prodikeys.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,10 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data)
395395

396396
/* break keys */
397397
for (bit_index = 0; bit_index < 24; bit_index++) {
398-
key = pm->last_key[bit_index];
399398
if (!((0x01 << bit_index) & bit_mask)) {
400399
input_event(pm->input_ep82, EV_KEY,
401400
pm->last_key[bit_index], 0);
402-
pm->last_key[bit_index] = 0;
401+
pm->last_key[bit_index] = 0;
403402
}
404403
}
405404

0 commit comments

Comments
 (0)