irda: Fix a misalign access issue. (v2)

Replace u16ho with put/get_unaligned functions

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Graf Yang
2008-05-13 23:25:57 -07:00
committed by David S. Miller
parent c1cc678ada
commit 332223831e
4 changed files with 10 additions and 10 deletions

View File

@@ -57,9 +57,6 @@ typedef union {
__u8 byte[2];
} __u16_host_order;
/* Same purpose, different application */
#define u16ho(array) (* ((__u16 *) array))
/* Types of discovery */
typedef enum {
DISCOVERY_LOG, /* What's in our discovery log */