diff options
author | Salil Mehta <salil.mehta@huawei.com> | 2017-08-30 12:06:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-30 15:29:42 -0700 |
commit | 752b06946cc99534a7a4a11b7196e9a1e3d7e098 (patch) | |
tree | 26d8518599d39c0fc0ec92c6cdb5ed357b86209a /usr | |
parent | net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const (diff) | |
download | linux-dev-752b06946cc99534a7a4a11b7196e9a1e3d7e098.tar.xz linux-dev-752b06946cc99534a7a4a11b7196e9a1e3d7e098.zip |
net: hns3: Fixes the wrong IS_ERR check on the returned phydev value
This patch removes the wrong check being done for the phy device being
returned by the mdiobus_get_phy() function. This function never returns
the error pointers.
Fixes: 256727da7395 ("net: hns3: Add MDIO support to HNS3 Ethernet
Driver for hip08 SoC")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions