From 7d3c4fb6de3a21e2a393bf6a1d4b4d11fd65d97b Mon Sep 17 00:00:00 2001 From: Shreyansh Jain Date: Wed, 9 May 2018 20:56:10 +0530 Subject: [PATCH] rawdev: remove dead code Coverity issue: 260406 Fixes: c88b3f2558ed ("rawdev: introduce raw device library") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- lib/librte_rawdev/rte_rawdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c index d314ef96b5..284e6aec8f 100644 --- a/lib/librte_rawdev/rte_rawdev.c +++ b/lib/librte_rawdev/rte_rawdev.c @@ -88,9 +88,6 @@ rte_rawdev_info_get(uint16_t dev_id, struct rte_rawdev_info *dev_info) RTE_RAWDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL); RTE_FUNC_PTR_OR_ERR_RET(dev_info, -EINVAL); - if (dev_info == NULL) - return -EINVAL; - rawdev = &rte_rawdevs[dev_id]; RTE_FUNC_PTR_OR_ERR_RET(*rawdev->dev_ops->dev_info_get, -ENOTSUP); -- 2.20.1