common: miiphyutil: no need to check name of mii_dev
authorPeng Fan <Peng.Fan@freescale.com>
Tue, 24 Nov 2015 09:03:47 +0000 (17:03 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 5 Dec 2015 23:22:15 +0000 (18:22 -0500)
The entry name of mii_dev is an array not pointer, so
no need to check.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/miiphyutil.c

index e499b588368fd9dcf9f04a6619976923e9d30a53..0811e098b47978579ce5d25fe5f82f5f010a3823 100644 (file)
@@ -159,7 +159,7 @@ void mdio_free(struct mii_dev *bus)
 
 int mdio_register(struct mii_dev *bus)
 {
-       if (!bus || !bus->name || !bus->read || !bus->write)
+       if (!bus || !bus->read || !bus->write)
                return -1;
 
        /* check if we have unique name */