Commit 72cded7
committed
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>1 parent ea47c47 commit 72cded7
1 file changed
Lines changed: 27 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3444 | 3444 | | |
3445 | 3445 | | |
3446 | 3446 | | |
3447 | | - | |
3448 | | - | |
| 3447 | + | |
| 3448 | + | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | 3451 | | |
3452 | | - | |
3453 | 3452 | | |
3454 | 3453 | | |
3455 | 3454 | | |
| |||
3538 | 3537 | | |
3539 | 3538 | | |
3540 | 3539 | | |
3541 | | - | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
3542 | 3565 | | |
3543 | 3566 | | |
3544 | 3567 | | |
| |||
3597 | 3620 | | |
3598 | 3621 | | |
3599 | 3622 | | |
3600 | | - | |
3601 | | - | |
3602 | | - | |
3603 | | - | |
3604 | | - | |
3605 | | - | |
3606 | | - | |
3607 | | - | |
3608 | | - | |
3609 | | - | |
3610 | | - | |
3611 | 3623 | | |
3612 | 3624 | | |
3613 | | - | |
3614 | 3625 | | |
3615 | 3626 | | |
3616 | 3627 | | |
| |||
0 commit comments