net: hns3: Remove redundant codes of query advertised flow control abilitiy
authorJian Shen <shenjian15@huawei.com>
Mon, 3 Sep 2018 10:21:55 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:46 +0000 (22:04 -0700)
commit7a0a928402689e32dc659b9466cb99254f7f7ed8
treedcb2ef9a417c582d0f0ff7047b682b4dcb198016
parent7f7d9e501f4123e64b130576621d24f9379adc8f
net: hns3: Remove redundant codes of query advertised flow control abilitiy

If the advertised flow control ability has been fetched using
phy_ethtool_ksettings_get() or hclge_get_link_mode() then it is
unnecessary to fetch them again later using hclge_get_flowctrl_adv().
This patch removes it.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c