stm32: fix compile failed
Error: chip/stm32_sdmmc.c:1911:7: error: variable 'regaddress' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] 1911 | if (priv->base == STM32_SDMMC1_BASE) Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
3f872807bf
commit
b599fdbc0e
@ -1900,8 +1900,8 @@ static void stm32_reset(struct sdio_dev_s *dev)
|
||||
struct stm32_dev_s *priv = (struct stm32_dev_s *)dev;
|
||||
irqstate_t flags;
|
||||
uint32_t regval;
|
||||
uint32_t regaddress;
|
||||
uint32_t restval;
|
||||
uint32_t regaddress = 0;
|
||||
uint32_t restval = 0;
|
||||
|
||||
/* Disable clocking */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user