From: Guenter Roeck Date: Wed, 18 Jan 2017 19:41:01 +0000 (-0800) Subject: Input: mma8450 - drop unnecessary call to i2c_set_clientdata X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e85aa695659407bb7a2b2d5de47be8c335049c0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Dmitry Torokhov --- 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; }