git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d14c49
)
net/ixgbe: remove dead code
author
Guinan Sun
<guinanx.sun@intel.com>
Mon, 10 Feb 2020 04:15:25 +0000
(
04:15
+0000)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000
(12:42 +0100)
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 <guinanx.sun@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_pf.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbe/ixgbe_pf.c
b/drivers/net/ixgbe/ixgbe_pf.c
index
493f0f2
..
afae21f
100644
(file)
--- 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);