diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-11 19:02:15 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-11-06 23:37:19 +0100 |
commit | 58a24b5241e6a86a965bb5d4a7a3df8767660611 (patch) | |
tree | 4b7f849ab138ef127d629bc5b6a10b139f259843 /drivers/hwmon | |
parent | hwmon: (pmbus/ibm-cffps) Add version detection capability (diff) | |
download | linux-58a24b5241e6a86a965bb5d4a7a3df8767660611.tar.xz linux-58a24b5241e6a86a965bb5d4a7a3df8767660611.zip |
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/w83793.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c index 9df48b70c70c..a0307e6761b8 100644 --- a/drivers/hwmon/w83793.c +++ b/drivers/hwmon/w83793.c @@ -2096,7 +2096,7 @@ END: 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; |