nvmet: don't open-code NVME_NS_ATTR_RO enumeration

It is already there, just go ahead and use it.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Sagi Grimberg 2022-12-07 13:28:23 +02:00 committed by Christoph Hellwig
parent 0da7feaa59
commit 19b00e0069
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req)
} }
if (req->ns->readonly) if (req->ns->readonly)
id->nsattr |= (1 << 0); id->nsattr |= NVME_NS_ATTR_RO;
done: done:
if (!status) if (!status)
status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id)); status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id));