diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-06-20 09:19:36 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-21 12:33:33 +0200 |
commit | ea162825a013c29823fed9e7d77c9671684cf247 (patch) | |
tree | 5c6959291f372a24d2214a5a1279d0937e79ad28 /common | |
parent | 58c7c027acc4ebf27ddd622001bafb596e8123cf (diff) | |
download | barebox-ea162825a013c29823fed9e7d77c9671684cf247.tar.gz barebox-ea162825a013c29823fed9e7d77c9671684cf247.tar.xz |
state: don't report error for -ENOMEDIUM
Since commit 863a2251393e ("state: make first boot less verbose"),
state_load returns -ENOMEDIUM instead of -ENOENT if we detect
a first load because all buckets are zero.
This case is expected and shouldn't warrant an error message, so
adjust callers appropriately.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220620071936.1460295-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/efi/payload/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/efi/payload/init.c b/common/efi/payload/init.c index e2bddabc9a..6976285fb3 100644 --- a/common/efi/payload/init.c +++ b/common/efi/payload/init.c @@ -359,7 +359,7 @@ static int efi_late_init(void) return PTR_ERR(state); ret = state_load(state); - if (ret) + if (ret != -ENOMEDIUM) pr_warn("Failed to load persistent state, continuing with defaults, %d\n", ret); |