Skip to content

Commit

Permalink
stm32/mboot: Remove redundant code in mboot_state_change function.
Browse files Browse the repository at this point in the history
This code was made redundant in 87fbcee

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jul 5, 2022
1 parent 5ab7dfe commit d27e584
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ports/stm32/mboot/mboot.h
Expand Up @@ -209,11 +209,7 @@ int mboot_get_reset_mode_default(void);
void mboot_state_change_default(mboot_state_t state, uint32_t arg);

static inline void mboot_state_change(mboot_state_t state, uint32_t arg) {
#if defined(MBOOT_BOARD_STATE_CHANGE)
return MBOOT_BOARD_STATE_CHANGE(state, arg);
#else
return mboot_state_change_default(state, arg);
#endif
}

#endif // MICROPY_INCLUDED_STM32_MBOOT_MBOOT_H

0 comments on commit d27e584

Please sign in to comment.