From: Sergei Shtylyov <[email protected]>
Date: Wed, 18 Mar 2015 22:25:46 +0300

> 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 <[email protected]>
> 
> ---
> The patch is against Grant Likely's 'linux.git' repo's 'devicetree/next' 
> branch.

Acked-by: David S. Miller <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to