hwmon: (nct6775) delete some extension lines
This code can fit on one line. No need to break it up. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20211215114050.GB14967@kili Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
9f448e796c
commit
c2fe0f63ca
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue