diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 13:19:22 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 13:19:22 +0000 |
| commit | 50942a7a15033c8328f10a4ed5c6d0e0149c8ad3 (patch) | |
| tree | 80fa04b7e9e558ce8d1b21ff0328888001d5f85d /util/nvmutil/nvmutil.c | |
| parent | d4231e27fa570399e6a4c70dd91be9949d8d4b64 (diff) | |
util/nvmutil: clean up write_mac_part
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index ccd478ea..e43db7ef 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -310,7 +310,8 @@ rhex(void) int write_mac_part(int partnum) { - if (!goodChecksum(part = partnum)) + part = partnum; + if (!goodChecksum(partnum)) return 0; for (int w = 0; w < 3; w++) |
