From 36da54d8f29ecd6850fafff19cb367f1d7a36cf1 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 29 Mar 2024 09:49:50 -0400 Subject: kernel: nvme: Fix return value Return the output of nvme_poll_submit_cmd() instead of 0. Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index ae0cf07..0c3738b 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -228,8 +228,7 @@ nvme_identify(struct nvme_state *state, struct nvme_id *id) identify->cns = 1; /* Identify controller */ identify->prp1 = VIRT_TO_PHYS(id); identify->prp2 = 0; /* No need, data address is 4k aligned */ - nvme_poll_submit_cmd(&state->adminq, cmd); - return 0; + return nvme_poll_submit_cmd(&state->adminq, cmd); } static int -- cgit v1.2.3