From: Guinan Sun Date: Mon, 10 Feb 2020 04:15:25 +0000 (+0000) Subject: net/ixgbe: remove dead code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1b473b28dc1cc6695f2cd5599d2f800d726bedac;p=dpdk.git net/ixgbe: remove dead code This patch fixes (Logically dead code) coverity issue. Coverity issue: 353613 Fixes: 3c4270187518 ("net/ixgbe: support VF MAC address add/remove") Signed-off-by: Guinan Sun Acked-by: Xiaolong Ye --- diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index 493f0f2b9a..afae21f81f 100644 --- a/drivers/net/ixgbe/ixgbe_pf.c +++ b/drivers/net/ixgbe/ixgbe_pf.c @@ -772,9 +772,6 @@ ixgbe_set_vf_macvlan_msg(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) IXGBE_VT_MSGINFO_SHIFT; if (index) { - if (new_mac == NULL) - return -1; - if (!rte_is_valid_assigned_ether_addr( (struct rte_ether_addr *)new_mac)) { PMD_DRV_LOG(ERR, "set invalid mac vf:%d\n", vf);