diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 22:12:00 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-08-06 04:32:32 -0400 |
commit | 82837ad5bda79cd13d64b9abad92e7872a06bc65 (patch) | |
tree | 24f17fd937f06e2084621a91f6eda51d6ef172f2 /kernel/power | |
parent | c2cd0b08e1efd9ee58d09049a6c77e5efa0ef627 (diff) |
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>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/hibernate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 9c85c7822383..38f3f96b4b12 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c | |||
@@ -638,6 +638,7 @@ static void power_down(void) | |||
638 | break; | 638 | break; |
639 | case HIBERNATION_PLATFORM: | 639 | case HIBERNATION_PLATFORM: |
640 | hibernation_platform_enter(); | 640 | hibernation_platform_enter(); |
641 | /* Fall through */ | ||
641 | case HIBERNATION_SHUTDOWN: | 642 | case HIBERNATION_SHUTDOWN: |
642 | if (pm_power_off) | 643 | if (pm_power_off) |
643 | kernel_power_off(); | 644 | kernel_power_off(); |