From: Grant Likely Subject: Re: [PATCH] of_net: factor out repetitive code =?iso-8859-1?Q?from=0D?= of_get_mac_address() Date: Sat, 28 Mar 2015 13:27:48 +0000 Message-ID: <20150328132748.2DDA7C409FF@trevor.secretlab.ca> References: <1776166.J84mUn2Yu8@wasted.cogentembedded.com> <20150318.152933.636562640494674435.davem@davemloft.net> Return-path: In-Reply-To: <20150318.152933.636562640494674435.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org To: David Miller , sergei.shtylyov@cogentembedded.com Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, f.fainelli@gmail.com, netdev@vger.kernel.org List-Id: devicetree@vger.kernel.org On Wed, 18 Mar 2015 15:29:33 -0400 (EDT) , David Miller wrote: > From: Sergei Shtylyov > 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 > > > > --- > > The patch is against Grant Likely's 'linux.git' repo's 'devicetree/next' branch. > > Acked-by: David S. Miller Applied for v4.1, thanks. g.