]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for not returning problem in get_link_ksettings when phy exists
authorFuyun Liang <liangfuyun1@huawei.com>
Wed, 21 Mar 2018 07:49:30 +0000 (15:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:12:03 +0000 (13:12 -0400)
commit3ab938b57577707e409fd62c4766bf9a9fa532ca
treec03c1182a13480b5efd350320f806bae10394c6f
parent3b62c71b7c0068198fd0a12a1cda62e981143133
net: hns3: fix for not returning problem in get_link_ksettings when phy exists

When phy exists, phy_ethtool_ksettings_get function is enough to get the
link ksettings. If the phy exists, get_link_ksettings function can return
directly after phy_ethtool_ksettings_get is called.

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/hns3_ethtool.c