No need to check for null pointer here.

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 examples/fips_validation/fips_dev_self_test.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/fips_validation/fips_dev_self_test.c 
b/examples/fips_validation/fips_dev_self_test.c
index 076e9de099c0..19af134bbe83 100644
--- a/examples/fips_validation/fips_dev_self_test.c
+++ b/examples/fips_validation/fips_dev_self_test.c
@@ -1523,8 +1523,7 @@ fips_dev_auto_test_uninit(uint8_t dev_id,
                struct fips_dev_auto_test_env *env)
 {
        rte_pktmbuf_free(env->mbuf);
-       if (env->op)
-               rte_crypto_op_free(env->op);
+       rte_crypto_op_free(env->op);
        rte_mempool_free(env->mpool);
        rte_mempool_free(env->op_pool);
        rte_mempool_free(env->sess_pool);
-- 
2.34.1

Reply via email to