]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/cli.c
eventdev/eth_rx: fix telemetry Rx stats reset
[dpdk.git] / examples / ip_pipeline / cli.c
index 0c372675a919f2d989823e4172346550d34bf27c..c918f30e06f3417827be1242f71274b0e01c6fb7 100644 (file)
@@ -3773,10 +3773,8 @@ parse_free_sym_crypto_param_data(struct rte_table_action_sym_crypto_params *p)
 
                switch (xform[i]->type) {
                case RTE_CRYPTO_SYM_XFORM_CIPHER:
-                       if (p->cipher_auth.cipher_iv.val)
-                               free(p->cipher_auth.cipher_iv.val);
-                       if (p->cipher_auth.cipher_iv_update.val)
-                               free(p->cipher_auth.cipher_iv_update.val);
+                       free(p->cipher_auth.cipher_iv.val);
+                       free(p->cipher_auth.cipher_iv_update.val);
                        break;
                case RTE_CRYPTO_SYM_XFORM_AUTH:
                        if (p->cipher_auth.auth_iv.val)
@@ -3785,10 +3783,8 @@ parse_free_sym_crypto_param_data(struct rte_table_action_sym_crypto_params *p)
                                free(p->cipher_auth.cipher_iv_update.val);
                        break;
                case RTE_CRYPTO_SYM_XFORM_AEAD:
-                       if (p->aead.iv.val)
-                               free(p->aead.iv.val);
-                       if (p->aead.aad.val)
-                               free(p->aead.aad.val);
+                       free(p->aead.iv.val);
+                       free(p->aead.aad.val);
                        break;
                default:
                        continue;