From: Ido Yariv Date: Thu, 31 Mar 2011 08:06:58 +0000 (+0200) Subject: wl12xx: Clean up the block size alignment code X-Git-Tag: v3.0-rc1~377^2~161^2^2~142^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da13da767cd568c1fe2a7b5b936e86e521b5ae7;p=pandora-kernel.git wl12xx: Clean up the block size alignment code Simplify and clean up the block size alignment code: 1. Set the block size according to the padding field type, as it cannot exceed the maximum value this field can hold. 2. Move the alignment code into a function instead of duplicating it in multiple places. 3. In the current implementation, the block_size member can be misleading because a zero value actually means that there's no need to align. Declare a block size alignment quirk instead. Signed-off-by: Ido Yariv Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed