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>
This commit is contained in:

committed by
Dmitry Torokhov

parent
2ea9c2362b
commit
14fdb924af
@@ -358,8 +358,6 @@ static int tca8418_keypad_probe(struct i2c_client *client,
|
||||
__set_bit(EV_REP, input->evbit);
|
||||
input_set_capability(input, EV_MSC, MSC_SCAN);
|
||||
|
||||
input_set_drvdata(input, keypad_data);
|
||||
|
||||
irq = client->irq;
|
||||
if (irq_is_gpio)
|
||||
irq = gpio_to_irq(irq);
|
||||
|
Reference in New Issue
Block a user