From: Sergei Shtylyov Date: Wed, 18 Mar 2015 19:25:46 +0000 (+0300) Subject: of_net: factor out repetitive code from of_get_mac_address() X-Git-Tag: omap-for-v4.1/fixes-rc1~103^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb46a1da78dfff0c9e03313e11ee99841a9efdb;p=pandora-kernel.git of_net: factor out repetitive code from of_get_mac_address() of_get_mac_address() basically does the same thing thrice, every time with a different property name, so it makes sense to factor out the repetitive code into separate function. While at it, we can start using ETH_ALEN instead of the bare number and drop unnecessary parens around the property length check. The resulting ARM object file is 100 bytes less in size than before the patch. Signed-off-by: Sergei Shtylyov Acked-by: David S. Miller Acked-by: Florian Fainelli Signed-off-by: Grant Likely --- Reading git-diff-tree failed