diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-05-04 12:33:07 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-15 14:28:17 +0200 |
commit | dc5bc6a9fed4a1ebca0e461ff9d5bc8ce471f7b9 (patch) | |
tree | ec809a48768080a1e16b0ada81caa6d7d688e777 /drivers | |
parent | nvme-rdma: get rid of unused ctrl lock (diff) | |
download | linux-dc5bc6a9fed4a1ebca0e461ff9d5bc8ce471f7b9.tar.xz linux-dc5bc6a9fed4a1ebca0e461ff9d5bc8ce471f7b9.zip |
nvme-rdma: Make queue flags bit numbers and not shifts
bitops accept bit numbers.
Reported-by: Vijay Immanuel <vijayi@attalasystems.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/rdma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 168aef2bec31..c4fd9d50b27b 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -80,10 +80,10 @@ struct nvme_rdma_request { }; enum nvme_rdma_queue_flags { - NVME_RDMA_Q_CONNECTED = (1 << 0), - NVME_RDMA_IB_QUEUE_ALLOCATED = (1 << 1), - NVME_RDMA_Q_DELETING = (1 << 2), - NVME_RDMA_Q_LIVE = (1 << 3), + NVME_RDMA_Q_CONNECTED = 0, + NVME_RDMA_IB_QUEUE_ALLOCATED = 1, + NVME_RDMA_Q_DELETING = 2, + NVME_RDMA_Q_LIVE = 3, }; struct nvme_rdma_queue { |