mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: soc/mediatek/mt8173: Do not initialize static variables to 0
CQ-DEPEND=CL:417080,CL:417081,CL:417087 BUG=None BRANCH=None TEST=None 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> Change-Id: Ibf0bd772bfdb3bbf6482a0ec9ff90a5c0a8945d2 Reviewed-on: https://chromium-review.googlesource.com/417958 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
b1c81b71d3
commit
6bb709e552
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue