aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chschd.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/src/chschd.c')
-rw-r--r--os/rt/src/chschd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c
index 3de92aec8..ba377ac4a 100644
--- a/os/rt/src/chschd.c
+++ b/os/rt/src/chschd.c
@@ -389,9 +389,9 @@ void chSchWakeupS(thread_t *ntp, msg_t msg) {
thread_t *otp = chSchReadyI(currp);
setcurrp(ntp);
#if defined(CH_CFG_IDLE_LEAVE_HOOK)
- if (otp->p_prio == IDLEPRIO) {
- CH_CFG_IDLE_LEAVE_HOOK();
- }
+ if (otp->p_prio == IDLEPRIO) {
+ CH_CFG_IDLE_LEAVE_HOOK();
+ }
#endif
ntp->p_state = CH_STATE_CURRENT;
chSysSwitch(ntp, otp);