]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Rework alignment check.
authorGertjan van Wingerde <gwingerde@kpnplanet.nl>
Sat, 7 Jun 2008 14:57:09 +0000 (16:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:17:59 +0000 (12:17 -0400)
commit9cf69876afabc76ff9d26771b6fee06d6571d224
tree211a94a72b359480db450dd15a0e916514e25e18
parent6e098b5c9a00525a60bff711d8a39fdf1988e4d9
rt2x00: Rework alignment check.

Rework the alignment check in rt2x00dev.c to be independent of any
potential alignment measures that may be taken before. Just check
whether the payload is aligned based on the pointer addresses.

Note: This is preparatory for the dynamically mapped skb buffers
for the PCI drivers, as these need 4-byte alignment instead of the
currently enforced offset by 2 bytes.

Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c