From: Shreyansh Jain Date: Wed, 9 May 2018 15:26:10 +0000 (+0530) Subject: rawdev: remove dead code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7d3c4fb6de3a21e2a393bf6a1d4b4d11fd65d97b;p=dpdk.git rawdev: remove dead code Coverity issue: 260406 Fixes: c88b3f2558ed ("rawdev: introduce raw device library") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- 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);