aboutsummaryrefslogtreecommitdiff
path: root/drivers/qe/uec.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2016-08-08 11:28:40 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2016-08-15 15:29:03 -0500
commit875e0bc68a53653aceae33cd92cbb29a8b82471c (patch)
tree4c4fcb4316bccd34fe4b63cc02e7ccb6b7d17c51 /drivers/qe/uec.c
parent5a49f17481bb9dcab1431c663d35cc1cace16825 (diff)
downloadu-boot-875e0bc68a53653aceae33cd92cbb29a8b82471c.zip
u-boot-875e0bc68a53653aceae33cd92cbb29a8b82471c.tar.gz
u-boot-875e0bc68a53653aceae33cd92cbb29a8b82471c.tar.bz2
net: mii: Fix changes made by spatch
Some of the changes were a bit too complex. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/qe/uec.c')
-rw-r--r--drivers/qe/uec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c
index d838520..468c92e 100644
--- a/drivers/qe/uec.c
+++ b/drivers/qe/uec.c
@@ -628,7 +628,7 @@ static int uec_miiphy_read(struct mii_dev *bus, int addr, int devad, int reg)
unsigned short value = 0;
int devindex = 0;
- if (bus->name == NULL || &value == NULL) {
+ if (bus->name == NULL) {
debug("%s: NULL pointer given\n", __FUNCTION__);
} else {
devindex = uec_miiphy_find_dev_by_name(bus->name);