diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-09-05 09:46:55 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-10-11 05:37:13 +0200 |
commit | c3bf6076cc41659c7b0301d19f871a22e4633013 (patch) | |
tree | b01178a0cfbf090716f8f441e3c802b9ca1e9509 /drivers/hwmon/nct6775.c | |
parent | hwmon: (k10temp) Support all Family 15h Model 6xh and Model 7xh processors (diff) | |
download | linux-c3bf6076cc41659c7b0301d19f871a22e4633013.tar.xz linux-c3bf6076cc41659c7b0301d19f871a22e4633013.zip |
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>
Diffstat (limited to 'drivers/hwmon/nct6775.c')
-rw-r--r-- | drivers/hwmon/nct6775.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 78603b78cf41..2b493d0682af 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -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)); |