]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvmet: remove local variable
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 14 Jun 2021 01:58:51 +0000 (18:58 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:20 +0000 (15:51 +0200)
commit7860569ad47f9fbd7c9f93a5c2b7d2a18e4af831
tree2e7acdbdc9b52179f8d15e3fd4c70b8c4f2ccf22
parent8bb6cb9b97ef0b0ae4a492db5a90f8156d2cbe85
nvmet: remove local variable

In function errno_to_nvme_status() we store the value of the NVMe
status into the local variable and don't do anything useful with that
but just return.

Remove the local variable and return the value directly from switch.
This also removed extra break statements.

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