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:
Furquan Shaikh 2016-12-07 07:35:01 -08:00 committed by Furquan Shaikh
parent 48f82a9beb
commit 56c848cdc9
1 changed files with 2 additions and 2 deletions

View File

@ -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;