diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-18 20:25:46 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2015-03-29 09:56:17 +0200 |
commit | 3eb46a1da78dfff0c9e03313e11ee99841a9efdb (patch) | |
tree | 88cd465a35867dbf131807f161605408d0c126b3 /block/cmdline-parser.c | |
parent | drivers/of: Add empty ranges quirk for PA-Semi (diff) | |
download | linux-3eb46a1da78dfff0c9e03313e11ee99841a9efdb.tar.xz linux-3eb46a1da78dfff0c9e03313e11ee99841a9efdb.zip |
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 <sergei.shtylyov@cogentembedded.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'block/cmdline-parser.c')
0 files changed, 0 insertions, 0 deletions