g_vfs_close(): vp is unused

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2021-11-18 05:02:59 +02:00
parent fea4a9aff1
commit 4fdc5b8494

View File

@ -302,13 +302,11 @@ g_vfs_close(struct g_consumer *cp)
{
struct g_geom *gp;
struct g_vfs_softc *sc;
struct vnode *vp;
g_topology_assert();
gp = cp->geom;
sc = gp->softc;
vp = cp->private;
bufobj_invalbuf(sc->sc_bo, V_SAVE, 0, 0);
sc->sc_bo->bo_private = cp->private;
gp->softc = NULL;