Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Slaby and committed by
Jiri Kosina
c6f2104c d6ea2f88

+1 -2
+1 -2
drivers/hid/hid-prodikeys.c
··· 395 395 396 396 /* break keys */ 397 397 for (bit_index = 0; bit_index < 24; bit_index++) { 398 - key = pm->last_key[bit_index]; 399 398 if (!((0x01 << bit_index) & bit_mask)) { 400 399 input_event(pm->input_ep82, EV_KEY, 401 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