From: George Spelvin Date: Sun, 11 May 2014 10:07:43 +0000 (-0400) Subject: drivers/net/wireless/ti/wl*/spi.c: Simplify CRC computation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~122^2^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e757201b8d66b02ed0ff90e5e9c7b8f3143ebfe7;p=pandora-kernel.git drivers/net/wireless/ti/wl*/spi.c: Simplify CRC computation These devices require commands stored in buffers in an odd order, different from that in which the CRC is computed. Rather than make two copies of the commands in two different orders, form the commands in logical (CRC) order, append the CRC, then byte-swap in place to the desired order. The old code worked fine, I'm just scratching an "ugh, that's ugly" itch. Signed-off-by: George Spelvin Reviewed-by: Pavel Machek Signed-off-by: John W. Linville --- Reading git-diff-tree failed