]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/lib/mrccache.c
x86: acpi: Return table length in acpi_create_madt_lapics()
[u-boot] / arch / x86 / lib / mrccache.c
index 53a1259d095369aad533eef8ec63435b1bff6d95..67bace4f40df6bb06e1fc3ec8022c9b9fd6ec079 100644 (file)
@@ -243,8 +243,12 @@ int mrccache_save(void)
                goto err_entry;
        data  = (struct mrc_data_container *)gd->arch.mrc_output;
        ret = mrccache_update(sf, &entry, data);
-       if (!ret)
+       if (!ret) {
                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:
        if (ret)