Skip to content
Permalink
Browse files

drivers: added break in function stm32_clock_control_get_subsys_rate

Added a new break statement in switch

Coverity-CID: 198021
Fixes: #15763
Signed-off-by: Maksim Masalski <maxxliferobot@gmail.com>
  • Loading branch information...
maxxlife authored and nashif committed May 2, 2019
1 parent 591ed26 commit a58a852e80de4ecf2161eb00517791b05018bf60
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/clock_control/clock_stm32_ll_mp1x.c
@@ -274,6 +274,7 @@ static int stm32_clock_control_get_subsys_rate(struct device *clock,
case LL_APB5_GRP1_PERIPH_I2C4:
case LL_APB5_GRP1_PERIPH_I2C6:
*rate = LL_RCC_GetI2CClockFreq(LL_RCC_I2C46_CLKSOURCE);
break;
case LL_APB5_GRP1_PERIPH_USART1:
*rate = LL_RCC_GetUARTClockFreq(
LL_RCC_USART1_CLKSOURCE);

0 comments on commit a58a852

Please sign in to comment.
You can’t perform that action at this time.