util/nvmutil: don't re-calculate skip_part

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-08 23:39:13 +00:00
parent dbd4d6d84a
commit 07f9f607ab
+6 -1
View File
@@ -668,11 +668,16 @@ read_checksums(void)
if (arg_part)
max_invalid = 1;
/*
* Skip verification on this part,
* but only when arg_part is set.
*/
skip_part = part ^ 1 ^ invert;
for (p = 0; p < 2; p++) {
/*
* Only verify a part if it was *read*
*/
skip_part = part ^ 1 ^ invert;
if (arg_part && (p == skip_part))
continue;