aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>2019-04-04 14:51:27 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 13:44:30 +0200
commit3b706841c29f1cf2f8f3484713288aa2c375677b (patch)
treed54349a2bafc0f581a5e51daa5d130f766827471 /tools/perf/scripts/python/net_dropmonitor.py
parentStaging: rtlwifi: Remove & on function name (diff)
downloadlinux-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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions