net/bnxt: remove logically dead code
authorYunjian Wang <wangyunjian@huawei.com>
Sat, 5 Sep 2020 09:36:42 +0000 (17:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
This patch removes logically dead code reported by coverity.

Coverity issue: 360824
Fixes: 6dc83230b43b ("net/bnxt: support port representor data path")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_reps.c

index a1b2c4b..6695896 100644 (file)
@@ -44,8 +44,6 @@ bnxt_vfr_recv(uint16_t port_id, uint16_t queue_id, struct rte_mbuf *mbuf)
        uint8_t que;
 
        vfr_eth_dev = &rte_eth_devices[port_id];
-       if (!vfr_eth_dev)
-               return 1;
        vfr_bp = vfr_eth_dev->data->dev_private;
        /* If rxq_id happens to be > max rep_queue, use rxq0 */
        que = queue_id < BNXT_MAX_VF_REP_RINGS ? queue_id : 0;