Fix error: variable 'lfbclk' is used uninitialized whenever switch case is taken [-Werror,-Wsometimes-uninitialized]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-26 10:53:04 +08:00 committed by Petro Karashchenko
parent d1a3f5e47f
commit c701d1c6ec
1 changed files with 1 additions and 0 deletions

View File

@ -746,6 +746,7 @@ static inline uint32_t efm32_lfbclk_config(uint32_t lfbclksel, bool ulfrco,
case CMU_LFCLKSEL_LFB_LFRCO:
{
efm32_enable_lfrco();
lfbclk = 0;
}
break;