浏览代码

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 <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Guenter Roeck 8 年之前
父节点
当前提交
a8e90be161
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/input/touchscreen/ar1021_i2c.c

+ 0 - 1
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;
 }