commit | 3b706841c29f1cf2f8f3484713288aa2c375677b | [log] [tgz] |
---|---|---|
author | Madhumitha Prabakaran <madhumithabiw@gmail.com> | Thu Apr 04 14:51:27 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 16 13:44:30 2019 +0200 |
tree | d54349a2bafc0f581a5e51daa5d130f766827471 | |
parent | d5d682270f35cc324f7074c3d615b5bf8222df16 [diff] |
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>