OSDN Git Service

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)
commit6623c5b3dfa5513190d729a8516db7a5163ec7de
tree7aa5608e6eeccf02afb0f27ad6105dac12146815
parent3add1d93d9919b6de94aa47900d4904adffbc976
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