Skip to content
Commit 4ea20639 authored by Al Viro's avatar Al Viro Committed by Samuel Ortiz
Browse files

nfc: fix get_unaligned_...() misuses



* if a local variable of type uint16_t is unaligned, your compiler is FUBAR
* the whole point of get_unaligned_... is to avoid memcpy + ..._to_cpu().
  Using it *after* memcpy() (into aligned object, no less) is pointless.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8b55d758
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment