summaryrefslogtreecommitdiff
path: root/board/gdsys
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 /board/gdsys
parent5a49f17481bb9dcab1431c663d35cc1cace16825 (diff)
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 'board/gdsys')
-rw-r--r--board/gdsys/405ex/io64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/gdsys/405ex/io64.c b/board/gdsys/405ex/io64.c
index 6a837883a7b..848cdde5e6b 100644
--- a/board/gdsys/405ex/io64.c
+++ b/board/gdsys/405ex/io64.c
@@ -264,8 +264,7 @@ int last_stage_init(void)
putc(slash[k % 8]);
}
- int retval;
- struct mii_dev *mdiodev = mdio_alloc();
+ mdiodev = mdio_alloc();
if (!mdiodev)
return -ENOMEM;
strncpy(mdiodev->name, CONFIG_SYS_GBIT_MII1_BUSNAME, MDIO_NAME_LEN);