Commit 2fbd5834 authored by Lee Jones's avatar Lee Jones

mfd: tps65010: Remove delcared and set, but never used variable 'status'

'status' hasn't been checked since 2008.

It's probably safe to remove it.

Fixes W=1 warning:

 drivers/mfd/tps65010.c:407:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
 407 | int status;
 | ^~~~~~
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 20d60f85
...@@ -404,7 +404,6 @@ static void tps65010_work(struct work_struct *work) ...@@ -404,7 +404,6 @@ static void tps65010_work(struct work_struct *work)
tps65010_interrupt(tps); tps65010_interrupt(tps);
if (test_and_clear_bit(FLAG_VBUS_CHANGED, &tps->flags)) { if (test_and_clear_bit(FLAG_VBUS_CHANGED, &tps->flags)) {
int status;
u8 chgconfig, tmp; u8 chgconfig, tmp;
chgconfig = i2c_smbus_read_byte_data(tps->client, chgconfig = i2c_smbus_read_byte_data(tps->client,
...@@ -415,8 +414,8 @@ static void tps65010_work(struct work_struct *work) ...@@ -415,8 +414,8 @@ static void tps65010_work(struct work_struct *work)
else if (tps->vbus >= 100) else if (tps->vbus >= 100)
chgconfig |= TPS_VBUS_CHARGING; chgconfig |= TPS_VBUS_CHARGING;
status = i2c_smbus_write_byte_data(tps->client, i2c_smbus_write_byte_data(tps->client,
TPS_CHGCONFIG, chgconfig); TPS_CHGCONFIG, chgconfig);
/* vbus update fails unless VBUS is connected! */ /* vbus update fails unless VBUS is connected! */
tmp = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); tmp = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment