Skip to content

Commit 0b49b86

Browse files
gmarullfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent b7f88b4 commit 0b49b86

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

soc/arm/st_stm32/stm32l4/power.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
132132
case PM_STATE_SOFT_OFF:
133133
/* We should not get there */
134134
__fallthrough;
135-
case PM_STATE_ACTIVE:
136-
__fallthrough;
137135
case PM_STATE_SUSPEND_TO_RAM:
138136
__fallthrough;
139137
case PM_STATE_SUSPEND_TO_DISK:

soc/arm/st_stm32/stm32u5/power.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
105105
case PM_STATE_SOFT_OFF:
106106
/* We should not get there */
107107
__fallthrough;
108-
case PM_STATE_ACTIVE:
109-
__fallthrough;
110108
case PM_STATE_SUSPEND_TO_RAM:
111109
__fallthrough;
112110
case PM_STATE_SUSPEND_TO_DISK:

soc/arm/st_stm32/stm32wba/power.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
8282
case PM_STATE_SOFT_OFF:
8383
/* We should not get there */
8484
__fallthrough;
85-
case PM_STATE_ACTIVE:
86-
__fallthrough;
8785
case PM_STATE_SUSPEND_TO_RAM:
8886
__fallthrough;
8987
case PM_STATE_SUSPEND_TO_DISK:

0 commit comments

Comments
 (0)