]> Git Repo - J-u-boot.git/commitdiff
common: miiphyutil: no need to check name of mii_dev
authorPeng Fan <[email protected]>
Tue, 24 Nov 2015 09:03:47 +0000 (17:03 +0800)
committerTom Rini <[email protected]>
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 <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
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 */
This page took 0.034769 seconds and 4 git commands to generate.