Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191011170215.11539-1-colin.king@canonical.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Colin Ian King and committed by
Guenter Roeck
58a24b52 da806a17

+1 -1
+1 -1
drivers/hwmon/w83793.c
··· 2096 2096 static u8 w83793_read_value(struct i2c_client *client, u16 reg) 2097 2097 { 2098 2098 struct w83793_data *data = i2c_get_clientdata(client); 2099 - u8 res = 0xff; 2099 + u8 res; 2100 2100 u8 new_bank = reg >> 8; 2101 2101 2102 2102 new_bank |= data->bank & 0xfc;