summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-03 15:08:29 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-03 15:08:29 +0100
commitdbd6defe9a02da1161f3cbd6348e643afe8beb9e (patch)
tree34be0d55ce3e7b17289c8476272089e4492de78b /util/nvmutil
parent270693fc92e84b264c160b64e6c66ea4196760a7 (diff)
util/nvmutil: fix faulty arg check
in practise, no other condition would be met and the program still worked. this is a pre-emptive fix.
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 69cf929..905ca70 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -9,7 +9,7 @@ main(int argc, char *argv[])
xpledge("stdio rpath wpath unveil", NULL);
for (int i = 0; i < 6; i++)
if (strcmp(COMMAND, op[i].str) == 0)
- if (!(cmd = argc >= op[i].args ? op[i].cmd : NULL))
+ if ((cmd = argc >= op[i].args ? op[i].cmd : NULL))
break;
if (cmd == cmd_setmac)
strMac = (argc > 3) ? MAC_ADDRESS : strRMac;