]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Remove obsolete rt2x00queue_align_payload
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 28 Mar 2011 11:33:04 +0000 (13:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:03 +0000 (16:20 -0400)
commit734241cfdc7885aaacd2cebe670615a119b4cd8e
tree2fecab069c76d9fc83df47453b781f440fe2659e
parent94537fe2c4d39afcc41658f54d87ffc4071a4e8a
rt2x00: Remove obsolete rt2x00queue_align_payload

Since commit fe92f7ae0e187e3881e90b0d9102be99c4bce6e3 ("mac80211:
clarify alignment docs, fix up alignment") removed the requirement
for a 4-byte aligned payload rt2x00queue_align_payload is obsolete
as mac80211 will align the payload when it passes the frame to the
net stack.

As a result we can remove the call to rt2x00queue_align_payload in the
rx path and since that's the last user we can remove
rt2x00queue_align_payload altogether.

One advantage is that we save some alignment operations for frames
that don't need to be aligned (for example beause they are not passed
to the net stack).

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00lib.h
drivers/net/wireless/rt2x00/rt2x00queue.c