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:
parent
d1a3f5e47f
commit
c701d1c6ec
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue