aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKanchan Joshi <joshi.k@samsung.com>2021-03-09 00:48:03 +0530
committerChristoph Hellwig <hch@lst.de>2021-04-02 18:48:25 +0200
commit2bd643079ec1c44fac66838c27b993b78e8930a7 (patch)
tree19fee70556a134e30445ecb903f4702eb4f69cbe /drivers/nvme
parentnvmet: replace white spaces with tabs (diff)
downloadlinux-dev-2bd643079ec1c44fac66838c27b993b78e8930a7.tar.xz
linux-dev-2bd643079ec1c44fac66838c27b993b78e8930a7.zip
nvme: use NVME_CTRL_CMIC_ANA macro
Use the proper macro instead of hard-coded value. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 07b34175c6ce..e82407d1ec23 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -745,7 +745,7 @@ static inline void nvme_trace_bio_complete(struct request *req)
static inline int nvme_mpath_init(struct nvme_ctrl *ctrl,
struct nvme_id_ctrl *id)
{
- if (ctrl->subsys->cmic & (1 << 3))
+ if (ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA)
dev_warn(ctrl->device,
"Please enable CONFIG_NVME_MULTIPATH for full support of multi-port devices.\n");
return 0;