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>
This commit is contained in:
Joe Hershberger
2016-08-08 11:28:40 -05:00
parent 5a49f17481
commit 875e0bc68a
8 changed files with 31 additions and 42 deletions

View File

@@ -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);