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
This commit is contained in:
John Baldwin 2024-05-10 09:12:03 -07:00
parent 1f83483d73
commit 50884a0b09

View file

@ -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);
}