summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-02-23 14:22:35 +0000
committerLeah Rowe <leah@libreboot.org>2026-02-23 14:22:35 +0000
commit1d20042f9a4310270f2ddce0538ddf302edc02c5 (patch)
treec23e529fd1fdced30c52d948aca620984db9d3cc /util
parent5a414ea4d6e1c5df2d4291281e005dc1b86b4f6a (diff)
nvmutil: simplify readGbe and writeGbeHEADmaster
the for loop only contains one line Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index b8aa0714..54a79c9e 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -223,10 +223,9 @@ nvmalloc(void)
void
readGbe(void)
{
- for (int p = 0; p < 2; p++) {
+ for (int p = 0; p < 2; p++)
if (do_read[p])
readGbe_part(p);
- }
}
void
@@ -428,10 +427,9 @@ goodChecksum(int partnum)
void
writeGbe(void)
{
- for (int p = 0; p < 2; p++) {
+ for (int p = 0; p < 2; p++)
if ((nvmPartChanged[p]) && (flags != O_RDONLY))
writeGbe_part(p);
- }
err_if(close(fd) == -1);
}