Browse Source

Input: mma8450 - 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 years ago
parent
commit
9e85aa6956
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/input/misc/mma8450.c

+ 0 - 2
drivers/input/misc/mma8450.c

@@ -205,8 +205,6 @@ static int mma8450_probe(struct i2c_client *c,
 		return err;
 	}
 
-	i2c_set_clientdata(c, m);
-
 	return 0;
 }