mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
2ea47be02f
commit
d39449b110
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue