Skip to content

Commit 26c0a26

Browse files
committed
nvme-fc: don't use bit masks for set/test_bit() numbers
So far harmless, but it's confusing and a bug waiting to happen if the shifts grow larger than 4. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3dfbdc4 commit 26c0a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/nvme/host

‎drivers/nvme/host/fc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232

3333
enum nvme_fc_queue_flags {
34-
NVME_FC_Q_CONNECTED = (1 << 0),
35-
NVME_FC_Q_LIVE = (1 << 1),
34+
NVME_FC_Q_CONNECTED = 0,
35+
NVME_FC_Q_LIVE,
3636
};
3737

3838
#define NVMEFC_QUEUE_DELAY 3 /* ms units */

0 commit comments

Comments
 (0)