From 1d32ff6705d2e2770c0e601be39a701993f22fe5 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 8 Apr 2024 23:01:18 -0400 Subject: kernel: nvme: Return status of call Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/ic/nvme.c') 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 -- cgit v1.2.3