From 3e750cc8d2a3cc20f1a8e54fb7cbe43f24e10294 Mon Sep 17 00:00:00 2001 From: Yunjian Wang Date: Tue, 31 Mar 2020 18:22:48 +0800 Subject: [PATCH] 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 --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.20.1