From 6b924787bed8c29d22ae66f74fbe3db90b25412a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 20:59:50 +0000 Subject: util/nvmutil: remove unnecessary checck the for loop exits when setting cmd checking for NULL is pointless Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'util/nvmutil/nvmutil.c') 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) { -- cgit v1.2.1