From: Yunjian Wang Date: Tue, 31 Mar 2020 10:22:48 +0000 (+0800) Subject: crypto/dpaa2_sec: remove unnecessary check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3e750cc8d2a3cc20f1a8e54fb7cbe43f24e10294;p=dpdk.git crypto/dpaa2_sec: remove unnecessary check This NULL check is unnecessary, container_of is never NULL. Signed-off-by: Yunjian Wang Acked-by: Akhil Goyal --- diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 561b553dc8..0919f3bf47 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3719,10 +3719,6 @@ dpaa2_sec_dev_init(struct rte_cryptodev *cryptodev) PMD_INIT_FUNC_TRACE(); dpaa2_dev = container_of(dev, struct rte_dpaa2_device, device); - if (dpaa2_dev == NULL) { - DPAA2_SEC_ERR("DPAA2 SEC device not found"); - return -1; - } hw_id = dpaa2_dev->object_id; cryptodev->driver_id = cryptodev_driver_id;