diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-23 02:17:40 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-23 02:22:25 +0100 |
commit | 14fdb924afd9290d43e64eeb2377d51806de1197 (patch) | |
tree | 45294cb8c286a7f56cacb552c89686d8a2838a1f /drivers/input/keyboard/maple_keyb.c | |
parent | Input: i8042 - add dbg msg when a command can't write its parameter (diff) | |
download | linux-14fdb924afd9290d43e64eeb2377d51806de1197.tar.xz linux-14fdb924afd9290d43e64eeb2377d51806de1197.zip |
Input: keyboard - drop unnecessary calls to input_set_drvdata
If there is no call to dev_get_drvdata() or input_get_drvdata(),
the call to input_set_drvdata() is unnecessary and can be dropped.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/maple_keyb.c')
-rw-r--r-- | drivers/input/keyboard/maple_keyb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/keyboard/maple_keyb.c b/drivers/input/keyboard/maple_keyb.c index 5aa2361aef95..78e3567ec18c 100644 --- a/drivers/input/keyboard/maple_keyb.c +++ b/drivers/input/keyboard/maple_keyb.c @@ -196,7 +196,6 @@ static int probe_maple_kbd(struct device *dev) __clear_bit(KEY_RESERVED, idev->keybit); input_set_capability(idev, EV_MSC, MSC_SCAN); - input_set_drvdata(idev, kbd); error = input_register_device(idev); if (error) |