diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2016-04-24 20:30:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-26 22:41:20 +0300 |
commit | 66c239e71adee694bc35f44387fb373942cfd957 (patch) | |
tree | 2a4555ec9ae58f3a88f1979ebf8130fa9af4648a /drivers | |
parent | 4914a584b1d66680532b20898cba1cf7d5ae63e4 (diff) | |
download | linux-66c239e71adee694bc35f44387fb373942cfd957.tar.xz |
mdio_bus: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 751202a285a6..499003ee8055 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -419,7 +419,7 @@ struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr) int err; phydev = get_phy_device(bus, addr, false); - if (IS_ERR(phydev) || phydev == NULL) + if (IS_ERR(phydev)) return phydev; /* |