diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2016-08-08 16:28:40 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-08-15 20:29:03 (GMT) |
commit | 875e0bc68a53653aceae33cd92cbb29a8b82471c (patch) | |
tree | 4c4fcb4316bccd34fe4b63cc02e7ccb6b7d17c51 /board/gdsys/405ex/io64.c | |
parent | 5a49f17481bb9dcab1431c663d35cc1cace16825 (diff) | |
download | u-boot-875e0bc68a53653aceae33cd92cbb29a8b82471c.tar.xz |
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/405ex/io64.c')
-rw-r--r-- | board/gdsys/405ex/io64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/gdsys/405ex/io64.c b/board/gdsys/405ex/io64.c index 6a83788..848cdde 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); |