]> asedeno.scripts.mit.edu Git - linux.git/commit
Staging: rtlwifi: Cleanup crc16_ccitt()
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>
Thu, 4 Apr 2019 19:51:27 +0000 (14:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 11:44:30 +0000 (13:44 +0200)
commit3b706841c29f1cf2f8f3484713288aa2c375677b
treed54349a2bafc0f581a5e51daa5d130f766827471
parentd5d682270f35cc324f7074c3d615b5bf8222df16
Staging: rtlwifi: Cleanup crc16_ccitt()

crc16_ccitt() function does "BIT(0) << i" instead of "BIT(i)".
Using !! is slightly shorter than "foo ? 1: 0" and remove unnecessary
parentheses to make the code simple.

Issue suggested by Coccinelle.

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/core.c