Skip to content

Commit 82837ad

Browse files
GustavoARSilvarafaeljw
authored andcommitted
PM / hibernate: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This addresses Coverity-ID: 114713 ("Missing break in switch"). Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent c2cd0b0 commit 82837ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/power/hibernate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ static void power_down(void)
638638
break;
639639
case HIBERNATION_PLATFORM:
640640
hibernation_platform_enter();
641+
/* Fall through */
641642
case HIBERNATION_SHUTDOWN:
642643
if (pm_power_off)
643644
kernel_power_off();

0 commit comments

Comments
 (0)