diff options
author | bp <bp@FreeBSD.org> | 2001-12-20 15:56:45 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2001-12-20 15:56:45 +0000 |
commit | 612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef (patch) | |
tree | 4b8a9287a42050927de0409211c6f4c01e3a4ebd /sys/fs/smbfs | |
parent | 553dc7dc53d4895d01533566c66501cfa63b5fc2 (diff) | |
download | FreeBSD-src-612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef.zip FreeBSD-src-612b0fb97ec0b2e83a2bac2ab98e2ce11e9a60ef.tar.gz |
Previous commit was intented to silence a warning, not to change codepath.
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 5 |
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--; |