mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 10:41:10 +02:00
[ifxmips] fix error from last commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13296 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
49b34728f9
commit
117defda11
@ -258,7 +258,7 @@ static int __init ifxmips_set_ethaddr(char *str)
|
|||||||
goto out;
|
goto out;
|
||||||
if ((i != 5) && (str[(3 * i) + 2] != ':'))
|
if ((i != 5) && (str[(3 * i) + 2] != ':'))
|
||||||
goto out;
|
goto out;
|
||||||
ifxmips_ethaddr[i] = strict_strtoul(&str[3 * i], NULL, 16);
|
ifxmips_ethaddr[i] = simple_strtoul(&str[3 * i], NULL, 16);
|
||||||
}
|
}
|
||||||
if (is_valid_ether_addr(ifxmips_ethaddr))
|
if (is_valid_ether_addr(ifxmips_ethaddr))
|
||||||
cmdline_mac = 1;
|
cmdline_mac = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user