include: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: "John W. Linville" <linville@tuxdriver.com> 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
b7bbf8fa6b
commit
8b5ac31e27
@@ -262,7 +262,7 @@ static inline int ieee80211_get_radiotap_len(unsigned char *data)
|
||||
struct ieee80211_radiotap_header *hdr =
|
||||
(struct ieee80211_radiotap_header *)data;
|
||||
|
||||
return le16_to_cpu(get_unaligned(&hdr->it_len));
|
||||
return get_unaligned_le16(&hdr->it_len);
|
||||
}
|
||||
|
||||
#endif /* IEEE80211_RADIOTAP_H */
|
||||
|
Reference in New Issue
Block a user