Skip to content

Commit 6cb8fdf

Browse files
grvjindal100ExactExampl
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 6cc1811 commit 6cb8fdf

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
@@ -391,9 +391,11 @@ int cpuidle_enable_device(struct cpuidle_device *dev)
391391
if (ret)
392392
return ret;
393393

394-
if (cpuidle_curr_governor->enable &&
395-
(ret = cpuidle_curr_governor->enable(drv, dev)))
396-
goto fail_sysfs;
394+
if (cpuidle_curr_governor->enable) {
395+
ret = cpuidle_curr_governor->enable(drv, dev);
396+
if (ret)
397+
goto fail_sysfs;
398+
}
397399

398400
smp_wmb();
399401

0 commit comments

Comments
 (0)