net/mlx5: fix counter in non-termination meter
[dpdk.git] / app / test-crypto-perf / cperf_test_pmd_cyclecount.c
index ba1f104..6b4d09e 100644 (file)
@@ -79,14 +79,11 @@ cperf_pmd_cyclecount_test_free(struct cperf_pmd_cyclecount_ctx *ctx)
                }
        }
 
-       if (ctx->pool)
-               rte_mempool_free(ctx->pool);
+       rte_mempool_free(ctx->pool);
 
-       if (ctx->ops)
-               rte_free(ctx->ops);
+       rte_free(ctx->ops);
 
-       if (ctx->ops_processed)
-               rte_free(ctx->ops_processed);
+       rte_free(ctx->ops_processed);
 
        rte_free(ctx);
 }
@@ -334,7 +331,7 @@ pmd_cyclecount_bench_burst_sz(
         * queue, so we never get any failed enqs unless the driver won't accept
         * the exact number of descriptors we requested, or the driver won't
         * wrap around the end of the TX ring. However, since we're only
-        * dequeueing once we've filled up the queue, we have to benchmark it
+        * dequeuing once we've filled up the queue, we have to benchmark it
         * piecemeal and then average out the results.
         */
        cur_op = 0;