crypto/dpaa2_sec: remove unnecessary check
This NULL check is unnecessary, container_of is never NULL. Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
parent
905a0c2082
commit
3e750cc8d2
@ -3719,10 +3719,6 @@ dpaa2_sec_dev_init(struct rte_cryptodev *cryptodev)
|
|||||||
|
|
||||||
PMD_INIT_FUNC_TRACE();
|
PMD_INIT_FUNC_TRACE();
|
||||||
dpaa2_dev = container_of(dev, struct rte_dpaa2_device, device);
|
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;
|
hw_id = dpaa2_dev->object_id;
|
||||||
|
|
||||||
cryptodev->driver_id = cryptodev_driver_id;
|
cryptodev->driver_id = cryptodev_driver_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user