crypto/ipsec_mb: remove useless check
The qp is never NULL when it reaches the qp_setup_cleanup error handling
code. This is due to checks earlier in the function that return an error
if qp is NULL.
Coverity issue: 375013
Fixes: 581c39b1cb
("crypto/ipsec_mb: fix queue cleanup null pointer dereference")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
This commit is contained in:
parent
d02c6bfcb9
commit
f819a1629b
@ -284,8 +284,6 @@ ipsec_mb_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,
|
||||
return 0;
|
||||
|
||||
qp_setup_cleanup:
|
||||
if (qp == NULL)
|
||||
return ret;
|
||||
#if IMB_VERSION(1, 1, 0) > IMB_VERSION_NUM
|
||||
if (qp->mb_mgr)
|
||||
free_mb_mgr(qp->mb_mgr);
|
||||
|
Loading…
Reference in New Issue
Block a user