mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
staging: unisys: visorinput: Remove unnecessary usage of local variable
Remove local variable on stack by directly returning the value in the array. Signed-off-by: David Binder <david.binder@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
999bc1ffb7
commit
f1844d1bcd
@ -539,13 +539,10 @@ handle_locking_key(struct input_dev *visorinput_dev,
|
||||
static int
|
||||
scancode_to_keycode(int scancode)
|
||||
{
|
||||
int keycode;
|
||||
|
||||
if (scancode > 0xff)
|
||||
keycode = visorkbd_ext_keycode[(scancode >> 8) & 0xff];
|
||||
else
|
||||
keycode = visorkbd_keycode[scancode];
|
||||
return keycode;
|
||||
return visorkbd_ext_keycode[(scancode >> 8) & 0xff];
|
||||
|
||||
return visorkbd_keycode[scancode];
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user