hwmon: (nct6775) Clean up a condition
I removed the "dsw_en &&" chunk of the condition because we know that "dsw_en" is set. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
53dfa0088e
commit
c3bf6076cc
@ -3550,8 +3550,7 @@ nct6775_check_fan_inputs(struct nct6775_data *data)
|
||||
|
||||
if (!fan6pin)
|
||||
fan6pin = (regval_2a & BIT(4)) &&
|
||||
(!dsw_en ||
|
||||
(dsw_en && (regval_ed & BIT(4))));
|
||||
(!dsw_en || (regval_ed & BIT(4)));
|
||||
if (!pwm6pin)
|
||||
pwm6pin = (regval_2a & BIT(3)) &&
|
||||
(regval_ed & BIT(2));
|
||||
|
Loading…
Reference in New Issue
Block a user