g_vfs_close(): vp is unused

(cherry picked from commit 4fdc5b8494)
This commit is contained in:
Konstantin Belousov 2021-11-18 05:02:59 +02:00
parent 8d194cc56d
commit 43215144c0

View File

@ -286,13 +286,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;