Commit c2fe0f63 authored by Dan Carpenter's avatar Dan Carpenter Committed by Guenter Roeck

hwmon: (nct6775) delete some extension lines

This code can fit on one line. No need to break it up.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211215114050.GB14967@kiliSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9f448e79
......@@ -3154,10 +3154,8 @@ store_speed_tolerance(struct device *dev, struct device_attribute *attr,
if (err < 0)
return err;
high = fan_from_reg16(data->target_speed[nr],
data->fan_div[nr]) + val;
low = fan_from_reg16(data->target_speed[nr],
data->fan_div[nr]) - val;
high = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) + val;
low = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) - val;
if (low <= 0)
low = 1;
if (high < low)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment