提交 26c0a26d 编写于 作者: J Jens Axboe

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 3dfbdc44
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
enum nvme_fc_queue_flags { enum nvme_fc_queue_flags {
NVME_FC_Q_CONNECTED = (1 << 0), NVME_FC_Q_CONNECTED = 0,
NVME_FC_Q_LIVE = (1 << 1), NVME_FC_Q_LIVE,
}; };
#define NVMEFC_QUEUE_DELAY 3 /* ms units */ #define NVMEFC_QUEUE_DELAY 3 /* ms units */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册