]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07f8dc23a4ee146350505a4008ef1ba2873b431e
tree26d8518599d39c0fc0ec92c6cdb5ed357b86209a
parent1de736012abbaf4c49e0f8810b2d10453517f6ec
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: d6a397b7fa3e ("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