util/nvmutil: remove unnecessary checck

the for loop exits when setting cmd

checking for NULL is pointless

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 20:59:50 +00:00
parent af55dd8959
commit 6b924787be
-2
View File
@@ -273,8 +273,6 @@ set_cmd(int argc, char *argv[])
}
for (i = 0; i < items(command); i++) {
if (cmd != NULL)
break;
if (strcmp(argv[2], command[i].str) != 0)
continue;
if (argc >= command[i].args) {