rawdev: remove dead code
authorShreyansh Jain <shreyansh.jain@nxp.com>
Wed, 9 May 2018 15:26:10 +0000 (20:56 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 23:01:11 +0000 (01:01 +0200)
Coverity issue: 260406
Fixes: c88b3f2558ed ("rawdev: introduce raw device library")
Cc: stable@dpdk.org
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_rawdev/rte_rawdev.c

index d314ef9..284e6ae 100644 (file)
@@ -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);