Previous commit was intented to silence a warning, not to change codepath.

This commit is contained in:
Boris Popov 2001-12-20 15:56:45 +00:00
parent f2d0f4274b
commit d9d8c8172d

View File

@ -249,8 +249,9 @@ smbfs_closel(struct vop_close_args *ap)
smb_makescred(&scred, td, ap->a_cred);
if (np->n_opencount == 0 && vp->v_type != VDIR) {
SMBERROR("Negative opencount\n");
if (np->n_opencount == 0) {
if (vp->v_type != VDIR)
SMBERROR("Negative opencount\n");
return 0;
}
np->n_opencount--;