Skip to content

Commit e53b9fe

Browse files
grvjindal100DhineshCool
authored andcommitted
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@gmail.com>
1 parent 8dd51ea commit e53b9fe

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

drivers/cpuidle/cpuidle.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,11 @@ int cpuidle_enable_device(struct cpuidle_device *dev)
380380
if (ret)
381381
return ret;
382382

383-
if (cpuidle_curr_governor->enable &&
384-
(ret = cpuidle_curr_governor->enable(drv, dev)))
385-
goto fail_sysfs;
383+
if (cpuidle_curr_governor->enable) {
384+
ret = cpuidle_curr_governor->enable(drv, dev);
385+
if (ret)
386+
goto fail_sysfs;
387+
}
386388

387389
smp_wmb();
388390

0 commit comments

Comments
 (0)