Skip to contentSkip to conversation

drivers: cpuidle: remove checkpatch error

PATCH New gaurav jindal 1 participant 1 message Sep 1, 2017 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: cpuidle: remove checkpatch error

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.

---

drivers/cpuidle/cpuidle.c +5 -3
index 60bb64f..44f09a8 100644
@@ -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();