]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Use bit 0 instead of bit 1
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 3 Jun 2016 19:10:37 +0000 (12:10 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 6 Jun 2016 23:37:23 +0000 (19:37 -0400)
commit7bcf5a4cc03e3ea792ffee25d3c776385fff640c
tree9953b26a1c16ab5e02c9a4734ea1a649a4538494
parent755157c802899af4a2d2c94a05cd62dbb0f91113
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>
drivers/infiniband/hw/hfi1/user_sdma.c