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:
parent
0da7feaa59
commit
19b00e0069
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue