diff options
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 90b7ecfb6257..db409d6bd5d2 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -752,7 +752,7 @@ static int input_default_setkeycode(struct input_dev *dev, | |||
752 | if (index >= dev->keycodemax) | 752 | if (index >= dev->keycodemax) |
753 | return -EINVAL; | 753 | return -EINVAL; |
754 | 754 | ||
755 | if (dev->keycodesize < sizeof(dev->keycode) && | 755 | if (dev->keycodesize < sizeof(ke->keycode) && |
756 | (ke->keycode >> (dev->keycodesize * 8))) | 756 | (ke->keycode >> (dev->keycodesize * 8))) |
757 | return -EINVAL; | 757 | return -EINVAL; |
758 | 758 | ||