Re: [PATCH v3] Staging: rtlwifi: Cleanup crc16_ccitt()

2019-04-04 Thread Dan Carpenter
Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter

[PATCH v3] Staging: rtlwifi: Cleanup crc16_ccitt()

2019-04-04 Thread Madhumitha Prabakaran
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 --- Changes in v3: - Changed subject line and commit log