summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Wang <wang.yong19@zte.com.cn>2019-08-30 16:45:29 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-09-04 09:53:35 +0200
commite573264c71de3de67e8fa81b0872c10bf4650f15 (patch)
tree49e10b29b31e8a569e795b696cc905bcbedf361e
parented838a5fe957c963fad9e7b275c9c44e6c02fb89 (diff)
downloaddpdk-next-eventdev-e573264c71de3de67e8fa81b0872c10bf4650f15.zip
dpdk-next-eventdev-e573264c71de3de67e8fa81b0872c10bf4650f15.tar.gz
dpdk-next-eventdev-e573264c71de3de67e8fa81b0872c10bf4650f15.tar.xz
net/ixgbe: remove redundant assignment
Since "link.link_duplex" has been assigned to ETH_LINK_FULL_DUPLEX just before switch statement, the assignment in switch-case statement is redundant. Remove it. Fixes: 82113036e4e5 ("ethdev: redesign link speed config") Cc: stable@dpdk.org Signed-off-by: Yong Wang <wang.yong19@zte.com.cn> Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
-rw-r--r--drivers/net/ixgbe/ixgbe_ethdev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 03fc1f7..f328d7c 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -4138,7 +4138,6 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,
link.link_speed = ETH_SPEED_NUM_10M;
else
link.link_speed = ETH_SPEED_NUM_100M;
- link.link_duplex = ETH_LINK_FULL_DUPLEX;
break;
case IXGBE_LINK_SPEED_100_FULL: