diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-11-24 17:03:47 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-12-05 18:22:15 -0500 |
commit | d39449b110c8da47bf5b8dc372bd5cd1c33a1a67 (patch) | |
tree | 1884e85fe7129db0dcc99e10aadaa909d5ac9a42 | |
parent | 2ea47be02f356ff275fa5c50392ea510ddb4a96c (diff) | |
download | u-boot-imx-d39449b110c8da47bf5b8dc372bd5cd1c33a1a67.zip u-boot-imx-d39449b110c8da47bf5b8dc372bd5cd1c33a1a67.tar.gz u-boot-imx-d39449b110c8da47bf5b8dc372bd5cd1c33a1a67.tar.bz2 |
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 <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>
-rw-r--r-- | common/miiphyutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/miiphyutil.c b/common/miiphyutil.c index e499b58..0811e09 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 */ |