Skip to content

Commit 505a70b

Browse files
geerturafaeljw
authored andcommitted
PM: domains: Add curly braces to delimit comment + statement block
There is not strict need to group a comment and a single statement in an if block, as comments are stripped by the pre-processor. However, adding curly braces does make the code easier to read, and may avoid mistakes when changing the code later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d4f8138 commit 505a70b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/base/power/domain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,13 +1311,14 @@ static int genpd_restore_noirq(struct device *dev)
13111311
* first time for the given domain in the present cycle.
13121312
*/
13131313
genpd_lock(genpd);
1314-
if (genpd->suspended_count++ == 0)
1314+
if (genpd->suspended_count++ == 0) {
13151315
/*
13161316
* The boot kernel might put the domain into arbitrary state,
13171317
* so make it appear as powered off to genpd_sync_power_on(),
13181318
* so that it tries to power it on in case it was really off.
13191319
*/
13201320
genpd->status = GENPD_STATE_OFF;
1321+
}
13211322

13221323
genpd_sync_power_on(genpd, true, 0);
13231324
genpd_unlock(genpd);

0 commit comments

Comments
 (0)