]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: clean up error handling in nvme_init_ns_head
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Apr 2020 07:59:08 +0000 (09:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:36 +0000 (16:18 -0600)
commit7b8252a6e690e593844c851f69a0da14084dff64
tree7aa5608e6eeccf02afb0f27ad6105dac12146815
parent5897907bc88cf13e084124a3f6e8f2c1555ca0ba
nvme: clean up error handling in nvme_init_ns_head

Use a common label for putting the nshead if needed and only convert
nvme status codes for the one case where it actually is needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c