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>
This commit is contained in:
Alison Schofield 2016-02-23 22:18:50 -08:00 committed by Greg Kroah-Hartman
parent e3f9555202
commit 8f27f7323f
1 changed files with 1 additions and 1 deletions

View 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) {