From: Ferruh Yigit Date: Thu, 19 Nov 2020 11:58:59 +0000 (+0000) Subject: app/crypto-perf: remove always true condition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=427ec3b7285d8e8b939f7e5db4976476c931c005;p=dpdk.git app/crypto-perf: remove always true condition This is already 'else' leg of the opposite comparison, simple 'else' will be logically same. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit Acked-by: Fan Zhang --- diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index 5f035519c3..99f86e9019 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -390,7 +390,7 @@ cperf_check_test_vector(struct cperf_options *opts, if (opts->cipher_algo == RTE_CRYPTO_CIPHER_NULL) { if (test_vec->plaintext.data == NULL) return -1; - } else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) { + } else { if (test_vec->plaintext.data == NULL) return -1; if (test_vec->plaintext.length < opts->max_buffer_size) @@ -440,7 +440,7 @@ cperf_check_test_vector(struct cperf_options *opts, return -1; if (test_vec->plaintext.length < opts->max_buffer_size) return -1; - } else if (opts->cipher_algo != RTE_CRYPTO_CIPHER_NULL) { + } else { if (test_vec->plaintext.data == NULL) return -1; if (test_vec->plaintext.length < opts->max_buffer_size)