]> 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)
commitd87d3b14790f642a97b5883b0da9bd699690ba0a
tree26d8518599d39c0fc0ec92c6cdb5ed357b86209a
parent7edcef0e2c85e28c44fd47b5731136f3e19d471f
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: b5dff4029486 ("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