diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-12-15 12:40:50 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-12-27 00:02:06 +0100 |
commit | c2fe0f63cafe3fc3adbd0aff6f1758b504ee3cdb (patch) | |
tree | d16d684de1134ae503d8b066f4f200fcd7e6f54e /drivers/hwmon/nct6775.c | |
parent | hwmon: (ntc_thermistor) Move DT matches to the driver block (diff) | |
download | linux-c2fe0f63cafe3fc3adbd0aff6f1758b504ee3cdb.tar.xz linux-c2fe0f63cafe3fc3adbd0aff6f1758b504ee3cdb.zip |
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>
Diffstat (limited to 'drivers/hwmon/nct6775.c')
-rw-r--r-- | drivers/hwmon/nct6775.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 57ce8633a725..2c5057fa3b71 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -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) |