]> git.hungrycats.org Git - linux/commit
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:00:43 +0000 (12:00 +0100)
commita1e4026ffa0bacbaa8604a7bd249c90754f444e1
tree1834bbc75edb294ebde219971eb085640c729f7e
parent062615f41338e4a4ebc5fb60d6db9a8caec59bc4
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