diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2013-05-27 18:01:19 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-07 14:17:01 -0400 |
commit | 064d55f8bc8d7d205ed0be6abb6717e92eeb7cad (patch) | |
tree | a0ad2387c6404e0abd31ca7b64fcc75a24b98615 /include/mb862xx.h | |
parent | a0ba279ac6b6b83b48dee609d7a34fc29b520ebc (diff) |
fdt: remove unaligned access in fdt_fixup_ethernet()
Some ARM compilers may emit code that makes unaligned accesses when
faced with constructs such as:
char mac[16] = "ethaddr";
Replace this with a strcpy() call instead to avoid this. strcpy() is
used here, rather than replacing all usage of the mac variable with the
string itself, since the loop itself sprintf()s to the variable each
iteration, so strcpy() is doing basically the same thing.
Reported-by: Florian Meier
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'include/mb862xx.h')
0 files changed, 0 insertions, 0 deletions