All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] common: miiphyutil: no need to check name of mii_dev
@ 2015-11-24  9:03 Peng Fan
  2015-11-24 19:04 ` Simon Glass
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peng Fan @ 2015-11-24  9:03 UTC (permalink / raw)
  To: u-boot

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>
---
 common/miiphyutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-06 22:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24  9:03 [U-Boot] [PATCH] common: miiphyutil: no need to check name of mii_dev Peng Fan
2015-11-24 19:04 ` Simon Glass
2015-11-24 20:38 ` Joe Hershberger
2015-11-25  1:52 ` Bin Meng
2015-12-06 22:06 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.