diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-04 01:39:11 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-04 01:39:11 +0000 |
| commit | 94415ca73dac1c73605d377425faa045e9c86d23 (patch) | |
| tree | cb72b834b0b501aac8970f09fc1b48c0a43facc6 | |
| parent | 75ea8ab1756b71c766769b519355e9f6c3611a69 (diff) | |
util/nvmutil: minor code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index f1e2c6f7..f32ba7ea 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -293,7 +293,7 @@ read_gbe_part(int p, int invert) for (retry = 0; retry < MAX_RETRY_READ; retry++) { rval = pread(fd, buf + (SIZE_4KB * (p ^ invert)), - SIZE_4KB, ((off_t ) p) * partsize); + SIZE_4KB, ((off_t) p) * partsize); if (check_read_or_die(fname, rval, SIZE_4KB, retry, "pread")) break; @@ -560,8 +560,6 @@ cmd_copy(void) * read_gbe() already performed the copy, * by virtue of inverted read. We need * only set the other part as changed. - * - * THIS IS NOT A BUG! */ part_modified[part ^ 1] = 1; } @@ -584,8 +582,6 @@ cmd_swap(void) * read_gbe() already performed the swap, * by virtue of inverted read. We need * only set both parts as changed. - * - * THIS IS NOT A BUG! */ part_modified[1] = part_modified[0] = 1; } |
