commit | dcb38fe4315e1d528d29578cc50b47c7eaf2cf8a | [log] [tgz] |
---|---|---|
author | Claudiu Manoil <claudiu.manoil@freescale.com> | Mon Sep 30 12:44:47 2013 +0300 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Fri Nov 22 17:03:17 2013 -0600 |
tree | bd6849caa41158fc16594377a60578adc44c0dea | |
parent | a18ab900bced87d8bf08bfc4da6c387c530308b0 [diff] |
net: tsec: Fix mac addr setup portability, cleanup Fix the 32-bit memory access that is not "endianess safe", i.e. not giving the desired byte layout for LE cpus: tempval = *((uint *) (tmpbuf + 4)), where 'char tmpbuf[]'. Free the stack from rendundant local vars: tmpbuf[] and i. Use a portable type (u32) for the 32bit tsec register value holder: tempval. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>