summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/trace.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-06-03 21:10:37 +0200
committerDoug Ledford <dledford@redhat.com>2016-06-07 01:37:23 +0200
commitd55215c50e4eaa4b906a42ef45884d8fcbadc777 (patch)
tree9953b26a1c16ab5e02c9a4734ea1a649a4538494 /drivers/infiniband/hw/hfi1/trace.c
parentIB/hfi1: Fix indentation (diff)
downloadlinux-d55215c50e4eaa4b906a42ef45884d8fcbadc777.tar.xz
linux-d55215c50e4eaa4b906a42ef45884d8fcbadc777.zip
IB/hfi1: Use bit 0 instead of bit 1
The first argument of test_bit() and clear_bit() is a bit number and not a bitmask. Hence change that first argument from (1 << 0) into 0. This patch avoids that smatch reports the following warnings: user_sdma.c:1059: sdma_cache_evict() warn: test_bit() takes a bit number user_sdma.c:1590: sdma_rb_remove() warn: test_bit() takes a bit number Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Mike Marciniszyn <mike.marciniszyn@intel.com> Cc: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/trace.c')
0 files changed, 0 insertions, 0 deletions