]> git.baikalelectronics.ru Git - kernel.git/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:02:42 +0000 (12:02 +0100)
commit82fd658ff0dc105e4b13141eeae895f0cd47fcd7
treecf8ec42d02dc4359275bf473468a656f576df195
parent8c2dcce497271d66582a51dbc951ee5a53945220
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