提交 c3bf6076 编写于 作者: D Dan Carpenter 提交者: Guenter Roeck

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 53dfa008
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册