summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2001-12-20 15:56:45 +0000
committerbp <bp@FreeBSD.org>2001-12-20 15:56:45 +0000
commit612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef (patch)
tree4b8a9287a42050927de0409211c6f4c01e3a4ebd /sys
parent553dc7dc53d4895d01533566c66501cfa63b5fc2 (diff)
downloadFreeBSD-src-612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef.zip
FreeBSD-src-612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef.tar.gz
Previous commit was intented to silence a warning, not to change codepath.
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/smbfs/smbfs_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c
index ed738fc..392468e 100644
--- a/sys/fs/smbfs/smbfs_vnops.c
+++ b/sys/fs/smbfs/smbfs_vnops.c
@@ -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--;
OpenPOWER on IntegriCloud