mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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>
This commit is contained in:
parent
749d782d80
commit
a3bdc5b5bd
1 changed files with 0 additions and 1 deletions
|
@ -579,7 +579,6 @@ static ssize_t show_pwm_enable(struct device *dev,
|
||||||
mutex_unlock(&data->update_lock);
|
mutex_unlock(&data->update_lock);
|
||||||
|
|
||||||
val = config | (altbit << 3);
|
val = config | (altbit << 3);
|
||||||
newval = 0;
|
|
||||||
|
|
||||||
if (val == 3 || val >= 10)
|
if (val == 3 || val >= 10)
|
||||||
newval = 255;
|
newval = 255;
|
||||||
|
|
Loading…
Reference in a new issue