aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-05-10 16:12:03 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-05-10 16:13:40 +0000
commit50884a0b09a8e02f08d1083efc9722e49b49c71b (patch)
treeac34e8f8507a78fd86dab5655daf14bb7229068b /sys
parent1f83483d73924de5fa2d5915676f6b2cd350d986 (diff)
downloadsrc-50884a0b09a8e02f08d1083efc9722e49b49c71b.tar.gz
src-50884a0b09a8e02f08d1083efc9722e49b49c71b.zip
nvmf_transport: Remove invalid assertion
This is leftover from an earlier iteration of the code where 'nt' was not dynamically allocated but was the passed in 'ops' pointer so was always alive. Reported by: Coverity Scan CID: 1545042 Sponsored by: Chelsio Communications
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/nvmf/nvmf_transport.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/nvmf/nvmf_transport.c b/sys/dev/nvmf/nvmf_transport.c
index 14d526192270..ea4aee8cc7ae 100644
--- a/sys/dev/nvmf/nvmf_transport.c
+++ b/sys/dev/nvmf/nvmf_transport.c
@@ -292,8 +292,6 @@ nvmf_transport_module_handler(struct module *mod, int what, void *arg)
prev = nt;
}
if (nt == NULL) {
- KASSERT(nt->nt_active_qpairs == 0,
- ("unregistered transport has connections"));
sx_xunlock(&nvmf_transports_lock);
return (0);
}