From e3f9555202bf5ad646575483fe81bb1c541e4ecc Mon Sep 17 00:00:00 2001 From: Alison Schofield Date: Tue, 23 Feb 2016 22:18:01 -0800 Subject: [PATCH] staging: iio: light: tsl2x7x: remove useless initialization Remove the initialization of a variable that is immediately reassigned. Signed-off-by: Alison Schofield Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/light/tsl2x7x_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/drivers/staging/iio/light/tsl2x7x_core.c index 2a627181a358..5f308bae41b9 100644 --- a/drivers/staging/iio/light/tsl2x7x_core.c +++ b/drivers/staging/iio/light/tsl2x7x_core.c @@ -296,7 +296,7 @@ static const u8 device_channel_config[] = { static int tsl2x7x_i2c_read(struct i2c_client *client, u8 reg, u8 *val) { - int ret = 0; + int ret; /* select register to write */ ret = i2c_smbus_write_byte(client, (TSL2X7X_CMD_REG | reg)); -- 2.20.1