summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-11-24 17:03:47 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:37 +0800
commitcab43cb0834b9183d62479e9c67e621c2ef3b704 (patch)
tree93b1c6325a221f31109533656207373dbdef3c33
parentb491a37d4370f77ebd49178aa505caaa621c4cd1 (diff)
downloadu-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)
-rw-r--r--common/miiphyutil.c2
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 */