From: Alison Schofield Date: Wed, 24 Feb 2016 06:18:50 +0000 (-0800) Subject: staging: iio: adt7316: remove useless initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f27f7323f064e0e847d8b97565499da53d485b5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: iio: adt7316: remove useless initialization Remove the initialization of a variable that is immediately reassigned. Signed-off-by: Alison Schofield Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/addac/adt7316-i2c.c b/drivers/staging/iio/addac/adt7316-i2c.c index 78fe0b557280..0ccf192b9a03 100644 --- a/drivers/staging/iio/addac/adt7316-i2c.c +++ b/drivers/staging/iio/addac/adt7316-i2c.c @@ -21,7 +21,7 @@ static int adt7316_i2c_read(void *client, u8 reg, u8 *data) { struct i2c_client *cl = client; - int ret = 0; + int ret; ret = i2c_smbus_write_byte(cl, reg); if (ret < 0) {