diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-08 23:01:18 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-08 23:01:18 -0400 |
commit | 1d32ff6705d2e2770c0e601be39a701993f22fe5 (patch) | |
tree | 540b65098fab48d7fb4870ace020311e9fedd41b /sys/dev | |
parent | 0c7707f293cc4d59763ed06a1d17c8599f180aa9 (diff) |
kernel: nvme: Return status of call
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/nvme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 6b92214..4a25735 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -481,8 +481,7 @@ nvme_init_controller(struct nvme_bar *bar) bar->asq = VIRT_TO_PHYS(adminq->sq); bar->acq = VIRT_TO_PHYS(adminq->cq); - nvme_enable_controller(&state); - return 0; + return nvme_enable_controller(&state); } static int |