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 <gustavo@embeddedor.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent c2cd0b0 commit 82837ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)