crypto/openssl: remove useless check before freeing
authorAkash Saxena <akash.saxena@caviumnetworks.com>
Fri, 23 Nov 2018 12:10:59 +0000 (12:10 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 19 Dec 2018 10:19:10 +0000 (11:19 +0100)
commit2680b69c7bd577ac07c799304eb21bc8e72fc4cd
treefe45c67a349cec1773c7d7504800586c2e4a4148
parent6cef3265af80ca365421b87d4a447a5e637fb6c4
crypto/openssl: remove useless check before freeing

Remove if() condition prior to calling BN_free() as
BN_free(a) does nothing if a is NULL.

Signed-off-by: Akash Saxena <akash.saxena@caviumnetworks.com>
Signed-off-by: Shally Verma <shally.verma@caviumnetworks.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/openssl/rte_openssl_pmd.c
drivers/crypto/openssl/rte_openssl_pmd_ops.c