From: Alexander Clouter Date: Mon, 5 Jul 2010 20:11:26 +0000 (+0100) Subject: MIPS: AR7: rewrite of cpmac_get_mac() X-Git-Tag: v2.6.36-rc1~563^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d16f7093b6eb4f3859856f6ee4ab504cbeeea0b9;p=pandora-kernel.git 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 To: linux-mips@linux-mips.org Cc: florian@openwrt.org Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed