]> git.droids-corp.org - dpdk.git/commit
eventdev/crypto: remove useless check
authorGanapati Kundapura <ganapati.kundapura@intel.com>
Wed, 23 Feb 2022 07:34:43 +0000 (01:34 -0600)
committerJerin Jacob <jerinj@marvell.com>
Thu, 24 Feb 2022 05:23:15 +0000 (06:23 +0100)
commitcc08c0b0c0a71f24389a8de647fcfa3eeea9dab7
tree5d6275cceb5244e2e868066267ce84529f269858
parent99f7941037fbcb4a66890e4fa13044ccc6742961
eventdev/crypto: remove useless check

eca_cryptodev_cdev_flush() is internal function and called with
valid range of cdevs.

crypto_cdev_info structure is allocated at adapter creation time
and retrieved from the adapter for a valid cdevs which cannot be NULL
and hence no need for NULL check.

Fixes: 2ae84b39ae7b ("eventdev/crypto: store operations in circular buffer")
Signed-off-by: Ganapati Kundapura <ganapati.kundapura@intel.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
lib/eventdev/rte_event_crypto_adapter.c