diff options
| author | Madhumitha Prabakaran <[email protected]> | 2019-04-04 14:51:27 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-04-16 13:44:30 +0200 |
| commit | 3b706841c29f1cf2f8f3484713288aa2c375677b (patch) | |
| tree | d54349a2bafc0f581a5e51daa5d130f766827471 /tools/perf/scripts/python/export-to-sqlite.py | |
| 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 <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions