From: Max Gurtovoy Date: Thu, 23 Sep 2021 10:17:43 +0000 (+0300) Subject: nvmet: use macro definition for setting nmic value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=571b5444d1eee112e82eebd0cf877dc510b8b5a5;p=linux.git nvmet: use macro definition for setting nmic value This makes the code more readable. Signed-off-by: Max Gurtovoy Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 3616a06f78361..dce53030b375a 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c @@ -541,7 +541,7 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req) * Our namespace might always be shared. Not just with other * controllers, but also with any other user of the block device. */ - id->nmic = (1 << 0); + id->nmic = NVME_NS_NMIC_SHARED; id->anagrpid = cpu_to_le32(req->ns->anagrpid); memcpy(&id->nguid, &req->ns->nguid, sizeof(id->nguid));