Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9acef487 authored by Dave Jones's avatar Dave Jones
Browse files

[CPUFREQ] checkpatch cleanups for conservative governor



Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 29464f28
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ static ssize_t store_sampling_rate(struct cpufreq_policy *unused,
	ret = sscanf(buf, "%u", &input);

	mutex_lock(&dbs_mutex);
	if (ret != 1 || input > MAX_SAMPLING_RATE || input < MIN_SAMPLING_RATE) {
	if (ret != 1 || input > MAX_SAMPLING_RATE ||
	    input < MIN_SAMPLING_RATE) {
		mutex_unlock(&dbs_mutex);
		return -EINVAL;
	}
@@ -212,7 +213,8 @@ static ssize_t store_up_threshold(struct cpufreq_policy *unused,
	ret = sscanf(buf, "%u", &input);

	mutex_lock(&dbs_mutex);
	if (ret != 1 || input > 100 || input <= dbs_tuners_ins.down_threshold) {
	if (ret != 1 || input > 100 ||
	    input <= dbs_tuners_ins.down_threshold) {
		mutex_unlock(&dbs_mutex);
		return -EINVAL;
	}