summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-17 01:10:23 +0000
committerpeter <peter@FreeBSD.org>2001-01-17 01:10:23 +0000
commit35aab8274330e8a8c936c060fb1c793c062501f9 (patch)
tree5d69bb7ec981d022d2b3924e3155cba4c7017497
parent02bffeb68b29f64d1673f2d3aff9577227e2736c (diff)
downloadFreeBSD-src-35aab8274330e8a8c936c060fb1c793c062501f9.zip
FreeBSD-src-35aab8274330e8a8c936c060fb1c793c062501f9.tar.gz
Fix breakage unconvered by LINT - dont refer to undefined variables in
KASSERT()
-rw-r--r--sys/fs/unionfs/union_vnops.c2
-rw-r--r--sys/miscfs/union/union_vnops.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index e8e0b8b..2ca72d7 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -1802,7 +1802,9 @@ union_unlock(ap)
#endif
int error;
+#if 0
KASSERT((un->un_uppervp == NULL || un->un_uppervp->v_usecount > 0), ("uppervp usecount is 0"));
+#endif
error = vop_stdunlock(ap);
#if 0
diff --git a/sys/miscfs/union/union_vnops.c b/sys/miscfs/union/union_vnops.c
index e8e0b8b..2ca72d7 100644
--- a/sys/miscfs/union/union_vnops.c
+++ b/sys/miscfs/union/union_vnops.c
@@ -1802,7 +1802,9 @@ union_unlock(ap)
#endif
int error;
+#if 0
KASSERT((un->un_uppervp == NULL || un->un_uppervp->v_usecount > 0), ("uppervp usecount is 0"));
+#endif
error = vop_stdunlock(ap);
#if 0
OpenPOWER on IntegriCloud