common: miiphyutil: no need to check name of mii_dev
PATCH 1/1 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]>
--- common/miiphyutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/miiphyutil.c +1 -1
@@ -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 */
Signature · 1 line
2.6.2
PATCH 1/1 common: miiphyutil: no need to check name of mii_dev
Quoted 10 lines · Peng Fan
The entry name of
mii_devis 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]>--- common/miiphyutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 common: miiphyutil: no need to check name of mii_dev
In reply to Peng FanHi Peng,
Quoted 7 lines · Peng Fan
The entry name of
mii_devis 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]>
Acked-by Joe Hershberger <[email protected]>
PATCH 1/1 common: miiphyutil: no need to check name of mii_dev
In reply to Peng FanQuoted 16 lines · Peng Fan
The entry name of
mii_devis 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]>--- common/miiphyutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/miiphyutil.c +0
-0
common/miiphyutil.c void mdio_free(struct mii_dev *bus)
Quoted 9 lines
common/miiphyutil.c +1
-2@@ -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 */ --
Reviewed-by Bin Meng <[email protected]>
Quoted 10 lines · Peng Fan
The entry name of
mii_devis 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]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151206/31259e7f/attachment.sig>