soc/mediatek/mt8173: Do not initialize static variables to 0
Change-Id: Ibf0bd772bfdb3bbf6482a0ec9ff90a5c0a8945d2 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17765 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
48f82a9beb
commit
56c848cdc9
|
@ -235,8 +235,8 @@ static int nor_erase(const struct spi_flash *flash, u32 offset, size_t len)
|
|||
|
||||
struct spi_flash *spi_flash_programmer_probe(struct spi_slave *spi, int force)
|
||||
{
|
||||
static struct spi_flash flash = {0};
|
||||
static int done = 0;
|
||||
static struct spi_flash flash;
|
||||
static int done;
|
||||
|
||||
if (done)
|
||||
return &flash;
|
||||
|
|
Loading…
Reference in New Issue