From 3dc1fedbe845691135bd4b3dbc439dd3024a6774 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 26 Jan 2025 08:03:27 +0000 Subject: [PATCH] util/nvmutil: minor cleanup SIZE_64KB no longer needed, and the malloc error is needlessly verbose Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index f5f8087..5b54117 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