summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-02-24 09:18:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-12 09:09:09 +0300
commit8f27f7323f064e0e847d8b97565499da53d485b5 (patch)
tree108158536975db15d74074cef3f278b034914619
parente3f9555202bf5ad646575483fe81bb1c541e4ecc (diff)
downloadlinux-8f27f7323f064e0e847d8b97565499da53d485b5.tar.xz
staging: iio: adt7316: remove useless initialization
Remove the initialization of a variable that is immediately reassigned. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/iio/addac/adt7316-i2c.c2
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) {