vmm: Remove an unneeded NULL pointer check

sc->vm is unconditionally dereferenced earlier in this function.  No
functional change intended.

Reviewed by:	bnovkov
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55069
This commit is contained in:
Mark Johnston
2026-02-03 19:09:44 +00:00
parent 8cfa6ddcee
commit 2d0564b9da
+1 -2
View File
@@ -876,8 +876,7 @@ vmmdev_destroy(struct vmmdev_softc *sc)
free(dsc, M_VMMDEV);
}
if (sc->vm != NULL)
vm_destroy(sc->vm);
vm_destroy(sc->vm);
chgvmmcnt(sc->ucred->cr_ruidinfo, -1, 0);
crfree(sc->ucred);