Skip to contentSkip to conversation

staging: iio: light: tsl2x7x: remove useless initialization

PATCH New Alison Schofield 1 participant 1 message Feb 24, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: light: tsl2x7x: remove useless initialization

Remove the initialization of a variable that is immediately reassigned.

---
 drivers/staging/iio/light/tsl2x7x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/light/tsl2x7x_core.c +1 -1
index 2a62718..5f308ba 100644
@@ -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));
Signature · 1 line
2.1.4