From: Guenter Roeck Date: Wed, 18 Jan 2017 22:26:47 +0000 (-0800) Subject: Input: sis_i2c - drop unnecessary call to i2c_set_clientdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa6f9222218273cc54ec8d3c91ad8207eef21f99;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: sis_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/sis_i2c.c b/drivers/input/touchscreen/sis_i2c.c index 8d93f8c9a403..67c2563031d6 100644 --- a/drivers/input/touchscreen/sis_i2c.c +++ b/drivers/input/touchscreen/sis_i2c.c @@ -316,7 +316,6 @@ static int sis_ts_probe(struct i2c_client *client, return -ENOMEM; ts->client = client; - i2c_set_clientdata(client, ts); ts->attn_gpio = devm_gpiod_get_optional(&client->dev, "attn", GPIOD_IN);