Skip to content
Snippets Groups Projects
Commit b1690bc3 authored by Claudiu Manoil's avatar Claudiu Manoil Committed by Joe Hershberger
Browse files

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: default avatarClaudiu Manoil <claudiu.manoil@freescale.com>
parent 82ef75ca
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment