diff options
author | Leah Rowe <leah@libreboot.org> | 2025-01-26 08:03:27 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-01-26 08:03:27 +0000 |
commit | 6e134c9f4bfe0cb37e3f10fceb4d2cd61a1e156b (patch) | |
tree | b8e77e94aa780837643c6c7aae48ef8688d82429 | |
parent | 98e105ac4f186428bc9df238507c64b5f51ff12a (diff) |
util/nvmutil: minor cleanup
SIZE_64KB no longer needed, and the malloc error
is needlessly verbose
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index f5f80875..5b541179 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -28,7 +28,6 @@ uint8_t hextonum(char chs), rhex(void); #define SIZE_8KB 0x2000 #define SIZE_16KB 0x4000 -#define SIZE_64KB 0x10000 #define SIZE_128KB 0x20000 uint16_t mac[3] = {0, 0, 0}; @@ -210,7 +209,7 @@ readGbe(void) /* cmd_copy also relies on this */ char *buf = malloc(nf << (do_read[0] & do_read[1])); if (buf == NULL) - err(errno, "Can't malloc %ld B for '%s'", partsize, filename); + err(errno, NULL); /* we pread per-part, so each part has its own pointer: */ /* if a do_read is 0, both pointers are the same; this accomplishes |