net/ixgbe: remove redundant assignment
authorYong Wang <wang.yong19@zte.com.cn>
Fri, 30 Aug 2019 08:45:29 +0000 (16:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Sep 2019 07:53:35 +0000 (09:53 +0200)
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>
drivers/net/ixgbe/ixgbe_ethdev.c

index 03fc1f7..f328d7c 100644 (file)
@@ -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: