]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/of/of_mdio.c
of_mdio: mdio_device_create() never returns NULL
[linux-beck.git] / drivers / of / of_mdio.c
index 5e7838290998edb9ec7737b2a6bf2380ebdffbc2..3bc68acac64cf91137a0809764307b2ec9e015f1 100644 (file)
@@ -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