diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-06 20:59:50 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-06 20:59:50 +0000 |
| commit | 6b924787bed8c29d22ae66f74fbe3db90b25412a (patch) | |
| tree | d634bc6dbdeb2d3440c9dfbf23f33ffca8054452 /util/nvmutil/nvmutil.c | |
| parent | af55dd895936cf56982e75b7878a5e435b74ef99 (diff) | |
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>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index d58eb862..ff74403e 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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) { |
