From: Claudiu Manoil Date: Tue, 7 Oct 2014 07:44:33 +0000 (+0300) Subject: gianfar: Make MAC addr setup endian safe, cleanup X-Git-Tag: fixes-against-v3.18-rc2~115^2~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83bfc3c4765c35ef0dfff8a3d6dedab88f3f50ea;p=pandora-kernel.git gianfar: Make MAC addr setup endian safe, cleanup Fix the 32-bit memory access that is not endian safe, i.e. not giving the desired byte layout for a LE CPU: tempval = *((u32 *) (tmpbuf + 4)), where 'char tmpbuf[]'. Get rid of rendundant local vars (tmpbuf[] and idx) and forced casts. Cleanup comments. Signed-off-by: Claudiu Manoil Signed-off-by: David S. Miller --- Reading git-diff-tree failed