staging: iio: adt7316: remove useless initialization
authorAlison Schofield <amsfield22@gmail.com>
Wed, 24 Feb 2016 06:18:50 +0000 (22:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
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>
drivers/staging/iio/addac/adt7316-i2c.c

index 78fe0b5..0ccf192 100644 (file)
@@ -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) {