]> www.infradead.org Git - nvme.git/commit
nvme: fc: split controller bringup handling
authorKeith Busch <kbusch@kernel.org>
Tue, 4 Jun 2024 18:59:07 +0000 (11:59 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 24 Jun 2024 19:53:42 +0000 (12:53 -0700)
commit72cded7573c8c038f999e49c77d1097efcfd15aa
tree0f7b8c0b7226411b31900d1586cd0bd7d6f17f3d
parentea47c471a2cf34a0ab3cd1c5f13b3625454f1fdd
nvme: fc: split controller bringup handling

Drivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl.
Split the allocation side out to make the error handling boundary easier
to navigate. The nvme fc driver's error handling had different returns
in the error goto label's, which harm readability.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/fc.c