Commit 58a24b52 authored by Colin Ian King's avatar Colin Ian King Committed by Guenter Roeck

hwmon: (w83793d) remove redundant assignment to variable res

The variable res is being initialized with a value that
is never read and is being re-assigned a little later on. The
assignment is redundant and hence can be removed.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191011170215.11539-1-colin.king@canonical.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent da806a17
......@@ -2096,7 +2096,7 @@ static struct w83793_data *w83793_update_device(struct device *dev)
static u8 w83793_read_value(struct i2c_client *client, u16 reg)
{
struct w83793_data *data = i2c_get_clientdata(client);
u8 res = 0xff;
u8 res;
u8 new_bank = reg >> 8;
new_bank |= data->bank & 0xfc;
......
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