summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar.h
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@freescale.com>2014-10-07 11:44:33 +0400
committerDavid S. Miller <davem@davemloft.net>2014-10-09 09:40:37 +0400
commit83bfc3c4765c35ef0dfff8a3d6dedab88f3f50ea (patch)
treedcdf7fd08ae731364ea09aef2fa725b6b3e6e597 /drivers/net/ethernet/freescale/gianfar.h
parentd6ef0bcce386531f250a8abee3c3595214ea1629 (diff)
downloadlinux-83bfc3c4765c35ef0dfff8a3d6dedab88f3f50ea.tar.xz
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 <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.h')
0 files changed, 0 insertions, 0 deletions