Re: [PATCH] mdio_bus: don't return NULL from mdiobus_scan()

2016-05-04 Thread David Miller
From: Sergei Shtylyov Date: Tue, 03 May 2016 23:14:41 +0300 > 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 MD

[PATCH] mdio_bus: don't return NULL from mdiobus_scan()

2016-05-03 Thread Sergei Shtylyov
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 --- The p