]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: remove a duplicate status assignment in nvmet_alloc_ctrl
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 25 Feb 2021 01:56:37 +0000 (17:56 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:25 +0000 (18:48 +0200)
commit755dcab47a973ae6c481a98203c31ce249e9c1e9
tree8dd430613975fe588cd7299e74ac8beb61bdae6b
parent88ba602c0df4978f56a680a041e8e0b4f8e26b3b
nvmet: remove a duplicate status assignment in nvmet_alloc_ctrl

In the function nvmet_alloc_ctrl() we assign status value before we
call nvmet_fine_get_subsys() to:

status = NVME_SC_CONNECT_INVALID_PARAM | NVME_SC_DNR;

After we successfully find the subsystem we again set the status value
to:

status = NVME_SC_CONNECT_INVALID_PARAM | NVME_SC_DNR;

Remove the duplicate status assignment value.

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