From: Yong Wang Date: Fri, 30 Aug 2019 08:45:29 +0000 (+0800) Subject: net/ixgbe: remove redundant assignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e573264c71de3de67e8fa81b0872c10bf4650f15;p=dpdk.git 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 Reviewed-by: Xiaolong Ye --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 03fc1f7179..f328d7c033 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: