Input: ar1021_i2c - drop unnecessary call to i2c_set_clientdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:20:18 +0000 (11:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:33:05 +0000 (11:33 -0800)
There is no call to i2c_get_clientdata() or dev_get_drvdata().
Drop the unnecessary call to i2c_set_clientdata().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ar1021_i2c.c

index 71b5a634cf6d56509f49563ed7454af9f8ae1b88..6562b17117f7fdd8e3bfc30cb8b926849fba9b13 100644 (file)
@@ -127,7 +127,6 @@ static int ar1021_i2c_probe(struct i2c_client *client,
                return error;
        }
 
-       i2c_set_clientdata(client, ar1021);
        return 0;
 }