wireless: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: John W. Linville <linville@tuxdriver.com> Cc: Michael Buesch <mb@bu3sch.de> Cc: Daniel Drake <dsd@gentoo.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6caf52a453
commit
533dd1b0be
@@ -3657,7 +3657,7 @@ void mpi_receive_802_11 (struct airo_info *ai)
|
||||
ptr += hdrlen;
|
||||
if (hdrlen == 24)
|
||||
ptr += 6;
|
||||
gap = le16_to_cpu(get_unaligned((__le16 *)ptr));
|
||||
gap = get_unaligned_le16(ptr);
|
||||
ptr += sizeof(__le16);
|
||||
if (gap) {
|
||||
if (gap <= 8)
|
||||
|
||||
Reference in New Issue
Block a user