summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2016-12-07 07:35:01 -0800
committerFurquan Shaikh <furquan@google.com>2016-12-07 17:15:56 +0100
commit56c848cdc9cd0d8d022c3b828c200cfa51affe56 (patch)
treeacccfaba2dc4bf592a9a03c7e303249a083b3ad4 /src/soc
parent48f82a9beb72db029b4ee55f6057783d0013a349 (diff)
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>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/mt8173/flash_controller.c4
1 files changed, 2 insertions, 2 deletions
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;