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 11:02:42 +0000 (12:02 +0100)
commit27eab31ed71fec55e98b0058db98342630e7c6a9
treecf8ec42d02dc4359275bf473468a656f576df195
parent84cc257e1888862e3018db2c402b44b8915c1eb1
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