]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: remove redundant assignments of variable status
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Jul 2021 14:56:50 +0000 (15:56 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:23 +0000 (14:42 +0200)
commit6b7facc6941662f1d0d1aa6b47ab3d078580af26
tree3162d83acaf89caf263954c37e3b83acebfc1004
parent203671febd58179df3394ed9a4aaa606a7f2389c
nvmet: remove redundant assignments of variable status

There are two occurrances where variable status is being assigned a
value that is never read and it is being re-assigned a new value
almost immediately afterwards on an error exit path. The assignments
are redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/zns.c