mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: don't re-calculate skip_part
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user