net: hns3: Fixes the wrong IS_ERR check on the returned phydev value
authorSalil Mehta <salil.mehta@huawei.com>
Wed, 30 Aug 2017 11:06:03 +0000 (12:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Aug 2017 22:29:42 +0000 (15:29 -0700)
commit752b06946cc99534a7a4a11b7196e9a1e3d7e098
tree26d8518599d39c0fc0ec92c6cdb5ed357b86209a
parentdc8007e8fa88be6d92ee6e2371d16b5860496a2d
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c