diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-17 00:42:22 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-04-17 00:42:22 +0200 |
commit | 4ea206395d3aede32bab94a75ec573530486fa44 (patch) | |
tree | 69c9d431bb02be210886f673c6fe467327cc156c /drivers/net/ethernet/qlogic/qed/qed_iscsi.h | |
parent | NFC: pn533: use constant off-stack buffer for sending acks (diff) | |
download | linux-dev-4ea206395d3aede32bab94a75ec573530486fa44.tar.xz linux-dev-4ea206395d3aede32bab94a75ec573530486fa44.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_iscsi.h')
0 files changed, 0 insertions, 0 deletions