diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-05 05:12:00 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-08-06 11:32:32 +0300 |
commit | 82837ad5bda79cd13d64b9abad92e7872a06bc65 (patch) | |
tree | 24f17fd937f06e2084621a91f6eda51d6ef172f2 /kernel/power | |
parent | c2cd0b08e1efd9ee58d09049a6c77e5efa0ef627 (diff) | |
download | linux-82837ad5bda79cd13d64b9abad92e7872a06bc65.tar.xz |
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) break; case HIBERNATION_PLATFORM: hibernation_platform_enter(); + /* Fall through */ case HIBERNATION_SHUTDOWN: if (pm_power_off) kernel_power_off(); |