From f885e96bd33a8a3133adf940bc7ba72e69af6149 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sat, 4 Jun 2022 16:03:46 +0100 Subject: [PATCH] Don't fail if slot already marked successful --- bootctrl_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootctrl_impl.cpp b/bootctrl_impl.cpp index bfbcda5..705efd9 100644 --- a/bootctrl_impl.cpp +++ b/bootctrl_impl.cpp @@ -376,7 +376,7 @@ int mark_boot_successful(unsigned slot) if (successful) { fprintf(stderr, "SLOT %s: already marked successful\n", slot_suffix_arr[slot]); - return -1; + return 0; } if (update_slot_attribute(slot_suffix_arr[slot],