nvmet: cleanup nvmet_execute_identify()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 15 Mar 2023 10:59:39 +0000 (19:59 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:55:04 +0000 (08:55 +0200)
commit145f0dbb8aac48f2e3abd4bd09582c78afef07a7
tree6c7f35750d7a2854fe404d26039ef30b054cfa4f
parenta5a6ab0950b46ab1ef4a5c83c80234018b81b38a
nvmet: cleanup nvmet_execute_identify()

Change the order of the cases in nvmet_execute_identify() main
switch-case to match the NVMe 2.0 specification order as defined in
table 273. This is also the increasing order of CNS values.

While at it, for clarity, make it explicit that identify with cns set
to NVME_ID_CNS_CS_NS does not support NVM command set specific data.

No functional changes are introduced by this cleanup.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c