Skip to content

Commit

Permalink
drivers: intc: stm32: add break to switch-clause
Browse files Browse the repository at this point in the history
add an unconditional break to switch-clause's default case, complying
with required [misra-c2012-16.3] rule which states; An unconditional
break statement terminate every switch-clause.

Found as a coding guideline violation (Rule 16.3) by static code
scanning tool.

Note: Tested on STM32L5 Nucleo-144 board (stm32l552xx).

Signed-off-by: ferar alashkar <[email protected]>
  • Loading branch information
feraralashkar authored and nashif committed Jun 6, 2023
1 parent 9d93863 commit b6d8989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/interrupt_controller/intc_exti_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void stm32_exti_trigger(int line, int trigger)
break;
default:
__ASSERT_NO_MSG(trigger);
break;
}
z_stm32_hsem_unlock(CFG_HW_EXTI_SEMID);
}
Expand Down

0 comments on commit b6d8989

Please sign in to comment.