Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1725302 > unrolled thread

[PATCH]drivers: cpuidle: remove checkpatch error

Started bygaurav jindal <gauravjindal1104@gmail.com>
First post2017-09-01 21:30 +0200
Last post2017-09-01 21:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH]drivers: cpuidle: remove checkpatch error gaurav jindal <gauravjindal1104@gmail.com> - 2017-09-01 21:30 +0200

#1725302 — [PATCH]drivers: cpuidle: remove checkpatch error

Fromgaurav jindal <gauravjindal1104@gmail.com>
Date2017-09-01 21:30 +0200
Subject[PATCH]drivers: cpuidle: remove checkpatch error
Message-ID<ukZND-VC-15@gated-at.bofh.it>
this commit removes the checkpatch error in cpuidle_enable_device
function. With removal of error, this commit makes the calling of
cpuidle_curr_governor->enable more smooth. 

Signed-off-by: gaurav jindal<gauravjindal1104@gmail.com>

---

diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index 60bb64f..44f09a8 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -399,9 +399,11 @@ int cpuidle_enable_device(struct cpuidle_device *dev)
 	if (ret)
 		return ret;

-	if (cpuidle_curr_governor->enable &&
-	    (ret = cpuidle_curr_governor->enable(drv, dev)))
-		goto fail_sysfs;
+	if (cpuidle_curr_governor->enable) {
+		ret = cpuidle_curr_governor->enable(drv, dev);
+		if (ret)
+			goto fail_sysfs;
+	}

 	smp_wmb();

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web