nvmet: use helper to remove the duplicate code
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 10 May 2021 19:15:37 +0000 (12:15 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 11 May 2021 16:30:45 +0000 (18:30 +0200)
commit4c2dab2bf5ace0ddc07ca7f04a7ba32fc3b23492
tree3bd0d2ba6b517e60632e5f69b2d2d705f1198027
parent3651aaacd10b2f8cee3780c490fc2df55bd4f543
nvmet: use helper to remove the duplicate code

Use the helper nvmet_report_invalid_opcode() to report invalid opcode
so we can remove the duplicate code.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c