test/cryptodev: remove unnecessary null check before free
PATCH 1/1 test/cryptodev: remove unnecessary null check before free
Found by devtools/cocci/nullfree.cocci
Fixes 2d970c663314 ("cryptodev: add asymmetric SM2 algorithm")
Signed-off-by Stephen Hemminger <[email protected]>
--- app/test/test_cryptodev_asym.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
app/test/test_cryptodev_asym.c +1 -2
@@ -2654,8 +2654,7 @@ _test_sm2_enc(bool rnd_secret) } } exit: -if (pbuf !=NULL ) -rte_free (pbuf); +rte_free (pbuf);if (sess !=NULL )rte_cryptodev_asym_session_free (dev_id, sess);
Signature · 1 line
2.39.2
Akhil Goyal
AppliedQuoted 6 lines
Found by
devtools/cocci/nullfree.cocciFixes 2d970c663314 ("cryptodev: add asymmetric SM2 algorithm")Signed-off-by Stephen Hemminger <[email protected]>---
Applied to dpdk-next-crypto
Thanks.