diff options
author | Alison Schofield <[email protected]> | 2016-02-23 22:18:50 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-03-11 22:09:09 -0800 |
commit | 8f27f7323f064e0e847d8b97565499da53d485b5 (patch) | |
tree | 108158536975db15d74074cef3f278b034914619 | |
parent | e3f9555202bf5ad646575483fe81bb1c541e4ecc (diff) |
staging: iio: adt7316: remove useless initialization
Remove the initialization of a variable that is immediately
reassigned.
Signed-off-by: Alison Schofield <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/iio/addac/adt7316-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |