From 0b49b86f06825990491199c2a5e15c6af0b91162 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 27 Jul 2023 14:41:06 +0200 Subject: [PATCH] soc: arm: st_stm32: remove redundant PM_STATE_ACTIVE case pm_state_exit_post_ops() will never be called with PM_STATE_ACTIVE. Signed-off-by: Gerard Marull-Paretas --- soc/arm/st_stm32/stm32l4/power.c | 2 -- soc/arm/st_stm32/stm32u5/power.c | 2 -- soc/arm/st_stm32/stm32wba/power.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/soc/arm/st_stm32/stm32l4/power.c b/soc/arm/st_stm32/stm32l4/power.c index 8b1a68fc767..44fe58e8f49 100644 --- a/soc/arm/st_stm32/stm32l4/power.c +++ b/soc/arm/st_stm32/stm32l4/power.c @@ -132,8 +132,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id) case PM_STATE_SOFT_OFF: /* We should not get there */ __fallthrough; - case PM_STATE_ACTIVE: - __fallthrough; case PM_STATE_SUSPEND_TO_RAM: __fallthrough; case PM_STATE_SUSPEND_TO_DISK: diff --git a/soc/arm/st_stm32/stm32u5/power.c b/soc/arm/st_stm32/stm32u5/power.c index 4cd5834cf8b..4d6034a8c47 100644 --- a/soc/arm/st_stm32/stm32u5/power.c +++ b/soc/arm/st_stm32/stm32u5/power.c @@ -105,8 +105,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id) case PM_STATE_SOFT_OFF: /* We should not get there */ __fallthrough; - case PM_STATE_ACTIVE: - __fallthrough; case PM_STATE_SUSPEND_TO_RAM: __fallthrough; case PM_STATE_SUSPEND_TO_DISK: diff --git a/soc/arm/st_stm32/stm32wba/power.c b/soc/arm/st_stm32/stm32wba/power.c index 83073b7b293..4d7fd0d0491 100644 --- a/soc/arm/st_stm32/stm32wba/power.c +++ b/soc/arm/st_stm32/stm32wba/power.c @@ -82,8 +82,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id) case PM_STATE_SOFT_OFF: /* We should not get there */ __fallthrough; - case PM_STATE_ACTIVE: - __fallthrough; case PM_STATE_SUSPEND_TO_RAM: __fallthrough; case PM_STATE_SUSPEND_TO_DISK: