Commit 27f64f30 authored by jan.koester's avatar jan.koester
Browse files

cleaups

parent 2c87bbe1
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2482,13 +2482,6 @@ store_pwm_mode(struct device *dev, struct device_attribute *attr,
	int err;
	u16 reg;

	/*
	 * The fan control mode should be set to manual if the user wants to adjust
	 * the fan speed. Otherwise, it will fail to set.
	 */
	if (index == 0 && data->pwm_enable[nr] > manual)
		return -EBUSY;

	err = kstrtoul(buf, 10, &val);
	if (err < 0)
		return err;