From: Gertjan van Wingerde Date: Fri, 4 Dec 2009 22:47:03 +0000 (+0100) Subject: rt2x00: Reorganize L2 padding inserting function. X-Git-Tag: v2.6.34-rc1~233^2~705^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e331462fcb3d897921d8a0af4fca1b08c1b7269;p=pandora-kernel.git rt2x00: Reorganize L2 padding inserting function. Simplify the rt2x00queue_insert_l2pad function by handling the alignment operations one by one. Do not special case special circumstances. Basically first perform header alignment, and then perform payload alignment (if any payload does exist). This results in a properly aligned skb. The end result is better readable code, with better results, as now L2 padding is inserted only when a payload is actually present in the frame. Signed-off-by: Gertjan van Wingerde Acked-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed