Input: mma8450 - drop unnecessary call to i2c_set_clientdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:41:01 +0000 (11:41 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:14 +0000 (11:49 -0800)
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>
drivers/input/misc/mma8450.c

index 19c73574458e8201bc8c36d3b083e241cf1fc841..b60cdea738263073ff300f22ba1f70d787e716ab 100644 (file)
@@ -205,8 +205,6 @@ static int mma8450_probe(struct i2c_client *c,
                return err;
        }
 
-       i2c_set_clientdata(c, m);
-
        return 0;
 }