projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da806a1
)
hwmon: (w83793d) remove redundant assignment to variable res
author
Colin Ian King
<colin.king@canonical.com>
Fri, 11 Oct 2019 17:02:15 +0000
(18:02 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 6 Nov 2019 22:37:19 +0000
(14:37 -0800)
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>
drivers/hwmon/w83793.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/w83793.c
b/drivers/hwmon/w83793.c
index 9df48b70c70c7381fbcba60119182a39edb2a2cd..a0307e6761b8557ca6ea04c8536777a0d9899f3c 100644
(file)
--- 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;