From 56c848cdc9cd0d8d022c3b828c200cfa51affe56 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 7 Dec 2016 07:35:01 -0800 Subject: soc/mediatek/mt8173: Do not initialize static variables to 0 Change-Id: Ibf0bd772bfdb3bbf6482a0ec9ff90a5c0a8945d2 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/17765 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/mediatek/mt8173/flash_controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/soc/mediatek/mt8173/flash_controller.c b/src/soc/mediatek/mt8173/flash_controller.c index 2aee66834f..f6f6e2a6c7 100644 --- a/src/soc/mediatek/mt8173/flash_controller.c +++ b/src/soc/mediatek/mt8173/flash_controller.c @@ -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; -- cgit v1.2.3