Skip to content
Snippets Groups Projects
Commit 8b674418 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Don't show an error when the MRC cache is up to date


When the final MRC cache record is the same as the one we want to write, we
skip writing since there is no point. This is normal behaviour.

Avoiding printing an error when this happens.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent afd5d50c
No related branches found
No related tags found
No related merge requests found
...@@ -243,8 +243,12 @@ int mrccache_save(void) ...@@ -243,8 +243,12 @@ int mrccache_save(void)
goto err_entry; goto err_entry;
data = (struct mrc_data_container *)gd->arch.mrc_output; data = (struct mrc_data_container *)gd->arch.mrc_output;
ret = mrccache_update(sf, &entry, data); ret = mrccache_update(sf, &entry, data);
if (!ret) if (!ret) {
debug("Saved MRC data with checksum %04x\n", data->checksum); debug("Saved MRC data with checksum %04x\n", data->checksum);
} else if (ret == -EEXIST) {
debug("MRC data is the same as last time, skipping save\n");
ret = 0;
}
err_entry: err_entry:
if (ret) if (ret)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment