diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-29 09:49:50 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-29 09:49:50 -0400 |
commit | 36da54d8f29ecd6850fafff19cb367f1d7a36cf1 (patch) | |
tree | 8f32c70e0b3b9d55a6e1fff299bc5301cc53ed45 /sys | |
parent | 4dd3a645a96717622523151c1258597fb8871d73 (diff) |
kernel: nvme: Fix return value
Return the output of nvme_poll_submit_cmd() instead of 0.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-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 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 |