From cce396a1ac3786b18f2c21d80c4e65e19481510d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 07:41:45 +0000 Subject: libreboot-utils: general code cleanup Signed-off-by: Leah Rowe --- util/libreboot-utils/nvmutil.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'util/libreboot-utils/nvmutil.c') diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c index fa6384b0..fb45a97c 100644 --- a/util/libreboot-utils/nvmutil.c +++ b/util/libreboot-utils/nvmutil.c @@ -123,10 +123,7 @@ main(int argc, char *argv[]) if (f->io_err_gbe_bin) err(EIO, "%s: error writing final file"); - if (f->tname != NULL) { - free(f->tname); - f->tname = NULL; - } + free_if_null(&f->tname); return EXIT_SUCCESS; } -- cgit v1.2.1