summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-01-18 13:40:41 -0500
committerTom Rini <trini@konsulko.com>2019-01-18 13:40:41 -0500
commitc4d323793ba2e0616d93ca104e1e2b9a9fbccf9b (patch)
treea79b7b8282e29e820022d037b6f6f2c1d5d52c0d /env
parentf83ef0dac83110d20389eb71f09285f009f3d198 (diff)
parent3d5931e5986a49c44cdab845c6751d845812e8d8 (diff)
Merge branch '2019-01-18-master-imports'
- Bugfix for SPI environment optimization - Spelling fixes - Remove some defconfigs per various maintainers - Minor db410, bananapi r2 fixes - Bump QEMU to v3.1.0 for most platforms
Diffstat (limited to 'env')
-rw-r--r--env/sf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/sf.c b/env/sf.c
index b3dec82c35..31dd003575 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -98,7 +98,7 @@ static int spi_flash_read_env(struct spi_flash *flash, u32 offset, size_t len,
u32 addr = 0;
u32 page_size = flash->page_size;
- memset(buf, 0x0, len);
+ memset(buf, 0xff, len);
for (int i = 0; i < len / page_size; ++i) {
int ret = spi_flash_read(flash, offset, page_size,
&((char *)buf)[addr]);