summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-02 17:41:10 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-02 17:41:10 +0000
commit51e4e43c94c577916cd5976266e15e794d55ea96 (patch)
tree44356d9ca6bda30dde55fe77fc8ed290cdffd90d
parenta34e79f501bbd81c4ee110cdee89d4fb528b8231 (diff)
util/nvmutil: tidy up the xopen macro
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 3b71e165..f86e88bf 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -71,7 +71,8 @@ void (*cmd)(void) = NULL;
#define xopen(f,l,p) \
if ((f = open(l, p)) == -1) \
err(SET_ERR(ECANCELED), "%s", l); \
- if (fstat(f, &st) == -1) err(SET_ERR(ECANCELED), "%s", l)
+ if (fstat(f, &st) == -1) \
+ err(SET_ERR(ECANCELED), "%s", l)
int
main(int argc, char *argv[])