From: Dan Carpenter Date: Wed, 15 Dec 2021 11:40:50 +0000 (+0300) Subject: hwmon: (nct6775) delete some extension lines X-Git-Tag: v6.6.17~8476^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2fe0f63cafe3fc3adbd0aff6f1758b504ee3cdb;p=platform%2Fkernel%2Flinux-rpi.git hwmon: (nct6775) delete some extension lines This code can fit on one line. No need to break it up. Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/20211215114050.GB14967@kili Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 57ce863..2c5057f 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)