net: hns3: cleanup mac auto-negotiation state query
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 22 Dec 2017 04:21:49 +0000 (12:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:41:30 +0000 (10:41 -0500)
commit492cd1db582d9e91c6db23a054bf63365ac84dc7
tree7a2c1d7dcbd6d98bcc09bde0739029b0b598c7b8
parent9699cffe97fee6eb957a23b58d814a2e62dd43e9
net: hns3: cleanup mac auto-negotiation state query

When checking whether auto-negotiation is on, driver only needs to
check the value of mac.autoneg(SW) directly, and does not need to
query it from hardware. Because this value is always synchronized
with the auto-negotiation state of hardware.

This patch removes the mac auto-negotiation state query.

Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c