summaryrefslogtreecommitdiff
path: root/drivers/hwmon/asc7621.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-18 15:10:38 +0300
committerGuenter Roeck <linux@roeck-us.net>2017-10-30 04:36:03 +0300
commita3bdc5b5bd369fcab8306b80d2c740e332183d20 (patch)
tree226d4dfada68a4225b31248737e41f6b12b1c84b /drivers/hwmon/asc7621.c
parent749d782d80de6db454af4336a4f4c8dfe79a5fc4 (diff)
downloadlinux-a3bdc5b5bd369fcab8306b80d2c740e332183d20.tar.xz
hwmon: (asc7621) remove redundant assignment to newval
The setting of newval to zero is redundant as the following if/else stanzas will always update newval to a new value. Remove the redundant setting, cleans up clang build warning: drivers/hwmon/asc7621.c:582:2: warning: Value stored to 'newval' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/asc7621.c')
-rw-r--r--drivers/hwmon/asc7621.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c
index 4875e99b59c9..6d34c05a4f83 100644
--- a/drivers/hwmon/asc7621.c
+++ b/drivers/hwmon/asc7621.c
@@ -579,7 +579,6 @@ static ssize_t show_pwm_enable(struct device *dev,
mutex_unlock(&data->update_lock);
val = config | (altbit << 3);
- newval = 0;
if (val == 3 || val >= 10)
newval = 255;