Index: vboot_firmware/lib/rollback_index.c |
diff --git a/vboot_firmware/lib/rollback_index.c b/vboot_firmware/lib/rollback_index.c |
index b09ea64a6d30c7b3cb4f18baa0657238e987e792..1fed860f101492ee20183c6aed384062adb5edb3 100644 |
--- a/vboot_firmware/lib/rollback_index.c |
+++ b/vboot_firmware/lib/rollback_index.c |
@@ -214,7 +214,7 @@ static uint32_t CheckDeveloperModeTransition(uint32_t current_developer) { |
RETURN_ON_FAILURE(TlclRead(DEVELOPER_MODE_NV_INDEX, |
(uint8_t*) &past_developer, |
sizeof(past_developer))); |
- must_clear = current_developer && !past_developer; |
+ must_clear = current_developer != past_developer; |
if (must_clear) { |
RETURN_ON_FAILURE(TlclForceClear()); |
} |