mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
of_mdio: mdio_device_create() never returns NULL
mdio_device_create() never returns NULL, thus checking for it in of_mdiobus_register_device() is pointless... Suggested-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1f3a1c5466
commit
a3478bae7a
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ static int of_mdiobus_register_device(struct mii_bus *mdio,
|
|||
int rc;
|
||||
|
||||
mdiodev = mdio_device_create(mdio, addr);
|
||||
if (!mdiodev || IS_ERR(mdiodev))
|
||||
if (IS_ERR(mdiodev))
|
||||
return 1;
|
||||
|
||||
/* Associate the OF node with the device structure so it
|
||||
|
|
|
|||
Loading…
Reference in a new issue