diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-11-24 17:03:47 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2016-03-04 15:53:37 +0800 |
commit | cab43cb0834b9183d62479e9c67e621c2ef3b704 (patch) | |
tree | 93b1c6325a221f31109533656207373dbdef3c33 /common/miiphyutil.c | |
parent | b491a37d4370f77ebd49178aa505caaa621c4cd1 (diff) | |
download | u-boot-imx-cab43cb0834b9183d62479e9c67e621c2ef3b704.zip u-boot-imx-cab43cb0834b9183d62479e9c67e621c2ef3b704.tar.gz u-boot-imx-cab43cb0834b9183d62479e9c67e621c2ef3b704.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>
(cherry picked from commit d39449b110c8da47bf5b8dc372bd5cd1c33a1a67)
Diffstat (limited to 'common/miiphyutil.c')
-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 dd05362..c0274f4 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -158,7 +158,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 */ |