of_mdio: mdio_device_create() never returns NULL
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 12 Mar 2016 21:33:13 +0000 (00:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:31:58 +0000 (15:31 -0400)
commita3478bae7a2751500386816ca567af4fc0f5eb10
tree97bffa8d2d237bc22e4a2fd336efeea60d8b098d
parent1f3a1c546615a2022c461c5e3458dd8a8f2f3aa1
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 <vz@mleia.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c