From d8ec9ca94a9e7c716b946f54273bf4bdca385a78 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 12 Jul 2024 23:48:03 -0400 Subject: kernel: nvme: Remove useless check Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 951f3ac..69794ec 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -390,10 +390,6 @@ nvme_init_ns(struct nvme_ctrl *ctrl, uint8_t nsid) goto done; } - if (status != 0) { - goto done; - } - TAILQ_INSERT_TAIL(&namespaces, ns, link); done: if (ns != NULL && status != 0) -- cgit v1.2.3