summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2015-11-24 17:03:47 +0800
committerTom Rini <[email protected]>2015-12-05 18:22:15 -0500
commitd39449b110c8da47bf5b8dc372bd5cd1c33a1a67 (patch)
tree1884e85fe7129db0dcc99e10aadaa909d5ac9a42
parent2ea47be02f356ff275fa5c50392ea510ddb4a96c (diff)
common: miiphyutil: no need to check name of mii_dev
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]>
-rw-r--r--common/miiphyutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index e499b588368..0811e098b47 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -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 */