nfc: fix get_unaligned_...() misuses
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Apr 2017 22:42:22 +0000 (00:42 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Apr 2017 22:42:22 +0000 (00:42 +0200)
commit4ea206395d3aede32bab94a75ec573530486fa44
tree69c9d431bb02be210886f673c6fe467327cc156c
parent8b55d7581fc5dccc658b9a169879c46dda807d5e
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: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcmrvl/fw_dnld.c
drivers/nfc/nxp-nci/i2c.c