diff options
author | Madhumitha Prabakaran <madhumithabiw@gmail.com> | 2019-04-04 14:51:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-16 13:44:30 +0200 |
commit | 3b706841c29f1cf2f8f3484713288aa2c375677b (patch) | |
tree | d54349a2bafc0f581a5e51daa5d130f766827471 /drivers/staging/ralink-gdma | |
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>
Diffstat (limited to 'drivers/staging/ralink-gdma')
0 files changed, 0 insertions, 0 deletions