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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:17 +0000 (11:59 +0100)
commita6a4b057cd47f7383890d8e8ebfa62eea4bca891
treecb3e5babec04ff06c33efe29e20b375dcd7240d0
parentf9309dcaa9c0e0d0d7b1dc8d3651db460ae6117f
nvmet: use NVME_CMD_EFFECTS_CSUPP instead of open coding it

[ Upstream commit 61f37154c599cf9f2f84dcbd9be842f8645a7099 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/admin-cmd.c