From: Guenter Roeck Date: Wed, 18 Jan 2017 19:20:18 +0000 (-0800) Subject: Input: ar1021_i2c - drop unnecessary call to i2c_set_clientdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8e90be161099a6e4d985a7e4a43f9acc8adfcae;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: ar1021_i2c - drop unnecessary call to i2c_set_clientdata 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ar1021_i2c.c b/drivers/input/touchscreen/ar1021_i2c.c index 71b5a634cf6d..6562b17117f7 100644 --- a/drivers/input/touchscreen/ar1021_i2c.c +++ b/drivers/input/touchscreen/ar1021_i2c.c @@ -127,7 +127,6 @@ static int ar1021_i2c_probe(struct i2c_client *client, return error; } - i2c_set_clientdata(client, ar1021); return 0; }