xgene: get_phy_device() doesn't return NULL anymore
Now that get_phy_device() no longer returns NULL on error, we don't need to check for it... Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b74766a0a0
commit
fb1116ab7c
@ -824,7 +824,7 @@ static int xgene_mdiobus_register(struct xgene_enet_pdata *pdata,
|
||||
return -EINVAL;
|
||||
|
||||
phy = get_phy_device(mdio, phy_id, false);
|
||||
if (!phy || IS_ERR(phy))
|
||||
if (IS_ERR(phy))
|
||||
return -EIO;
|
||||
|
||||
ret = phy_device_register(phy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user