Do not set a variable (vp->p_pollinfo) to NULL if we know

it already has that value.

Approved by:	re
This commit is contained in:
Robert Drehmel 2002-11-27 16:45:54 +00:00
parent cd96609654
commit f85a961930

View File

@ -961,8 +961,8 @@ getnewvnode(tag, mp, vops, vpp)
if (vp->v_pollinfo) {
mtx_destroy(&vp->v_pollinfo->vpi_lock);
uma_zfree(vnodepoll_zone, vp->v_pollinfo);
vp->v_pollinfo = NULL;
}
vp->v_pollinfo = NULL;
#ifdef MAC
mac_destroy_vnode(vp);
#endif