mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
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:
committed by
Petro Karashchenko
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:
|
case CMU_LFCLKSEL_LFB_LFRCO:
|
||||||
{
|
{
|
||||||
efm32_enable_lfrco();
|
efm32_enable_lfrco();
|
||||||
|
lfbclk = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user