]> git.baikalelectronics.ru Git - kernel.git/commit
mdio_bus: don't return NULL from mdiobus_scan()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 3 May 2016 20:14:41 +0000 (23:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 20:14:19 +0000 (16:14 -0400)
commit706ab9b7efd6b8a32bdd59973142880bdd2d81f3
tree9a6cd126ccfde25d06e8c96031f8b200f8080492
parent17bd96a7f1aba1b6b663328ca08ee56e3dff5839
mdio_bus: don't return NULL from mdiobus_scan()

I've finally noticed that mdiobus_scan() also returns either NULL or error
value on failure.  Return ERR_PTR(-ENODEV) instead of NULL since this is
the  error value  already filtered out by the callers that want to ignore
the  MDIO address scan failure...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c