Commit cab43cb0834b9183d62479e9c67e621c2ef3b704

Authored by Peng Fan
Committed by guoyin.chen
1 parent b491a37d43

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)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -158,7 +158,7 @@
158 158  
159 159 int mdio_register(struct mii_dev *bus)
160 160 {
161   - if (!bus || !bus->name || !bus->read || !bus->write)
  161 + if (!bus || !bus->read || !bus->write)
162 162 return -1;
163 163  
164 164 /* check if we have unique name */