OSDN Git Service

nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Dec 2022 14:20:04 +0000 (15:20 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Dec 2022 16:26:08 +0000 (06:26 -1000)
commit61f37154c599cf9f2f84dcbd9be842f8645a7099
tree08b97af56181b6172aa0fadbbeca72407fbec1ba
parent685e6311637e46f3212439ce2789f8a300e5050f
nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it

Use NVME_CMD_EFFECTS_CSUPP instead of open coding it and assign a
single value to multiple array entries instead of repeated assignments.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/target/admin-cmd.c