summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-18 11:41:01 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-18 11:49:14 -0800
commit9e85aa695659407bb7a2b2d5de47be8c335049c0 (patch)
tree2f8064ab49b3169ea6294a8f3ec660066cca7e61
parenta196b2c9f5f752e139f91d306fcb471e97723253 (diff)
downloadlinux-9e85aa695659407bb7a2b2d5de47be8c335049c0.tar.bz2
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>
-rw-r--r--drivers/input/misc/mma8450.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/misc/mma8450.c b/drivers/input/misc/mma8450.c
index 19c73574458e..b60cdea73826 100644
--- a/drivers/input/misc/mma8450.c
+++ b/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;
}