Fix lc823450_i2s.c:277:7: error: variable 'n' is used uninitialized whenever switch default is taken

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-04 18:14:05 +08:00 committed by Petro Karashchenko
parent bc04edecc1
commit 7c88ef1e6a

View File

@ -257,10 +257,10 @@ extern unsigned int XT1OSC_CLK;
static void _setup_audio_pll(uint32_t freq)
{
DEBUGASSERT(24000000 == XT1OSC_CLK);
uint32_t m = 0;
uint32_t n = 0;
uint32_t m;
uint32_t n;
DEBUGASSERT(24000000 == XT1OSC_CLK);
switch (freq)
{