diff options
author | Alexander Clouter <alex@digriz.org.uk> | 2010-07-05 20:11:26 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 12:26:02 (GMT) |
commit | d16f7093b6eb4f3859856f6ee4ab504cbeeea0b9 (patch) | |
tree | 66e693d7562ffa2393b934f78e112bc2a9b59e41 /arch/arm | |
parent | 0d59050496db973d8689f954baf8a202ddd4d51a (diff) | |
download | linux-fsl-qoriq-d16f7093b6eb4f3859856f6ee4ab504cbeeea0b9.tar.xz |
MIPS: AR7: rewrite of cpmac_get_mac()
Shamelessly stealing wisdom from pasemi_mac.c, I found char2hex() could
be replaced with a single call to sscanf(), looks cleaner to me at
least. The result is 100 bytes trimmed off the size of a compiled
cpmac_get_mac() and as an extra bonus it grumbles and gracefully fails
over to using random_ether_addr() when an attempt to parse an invalid
MAC address is made.
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
To: linux-mips@linux-mips.org
Cc: florian@openwrt.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions