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 /tools/perf/scripts/python/netdev-times.py | |
| parent | Staging: rtlwifi: Remove & on function name (diff) | |
| download | linux-3b706841c29f1cf2f8f3484713288aa2c375677b.tar.gz linux-3b706841c29f1cf2f8f3484713288aa2c375677b.zip | |
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 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
