[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170901192638.GB5075@gaurav>
Date: Sat, 2 Sep 2017 00:56:38 +0530
From: gaurav jindal <gauravjindal1104@...il.com>
To: rjw@...ysocki.net, daniel.lezcano@...aro.org
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH]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.
Signed-off-by: gaurav jindal<gauravjindal1104@...il.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();
Powered by blists - more mailing lists