kernel-hacking-2024-linux-s.../arch
Alexander Clouter d16f7093b6 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>
2010-08-05 13:26:02 +01:00
..
alpha
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2010-07-30 19:02:51 -07:00
avr32 serial: fix rs485 for atmel_serial on avr32 2010-07-26 11:59:31 -07:00
blackfin
cris
frv
h8300
ia64
m32r
m68k
m68knommu
microblaze lmb: rename to memblock 2010-07-14 17:14:00 +10:00
mips MIPS: AR7: rewrite of cpmac_get_mac() 2010-08-05 13:26:02 +01:00
mn10300
parisc
powerpc perf, powerpc: Use perf_sample_data_init() for the FSL code 2010-07-27 22:20:09 +10:00
s390 [S390] etr: fix clock synchronization race 2010-07-27 19:29:42 +02:00
score
sh lmb: rename to memblock 2010-07-14 17:14:00 +10:00
sparc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 2010-07-21 09:28:50 -07:00
um
x86 x86,kgdb: Fix hw breakpoint regression 2010-07-28 19:10:30 -05:00
xtensa
.gitignore
Kconfig