test/kvargs: fix invalid cases check
[dpdk.git] / app / test / test_kvargs.c
index d3db88a..f823b77 100644 (file)
@@ -230,8 +230,8 @@ static int test_invalid_kvargs(void)
                        rte_kvargs_free(kvlist);
                        goto fail;
                }
-               return 0;
        }
+       return 0;
 
  fail:
        printf("while processing <%s>", *args);