summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_export.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
commit975fba8a24263006afbbb4e38dd6bf515bdf4b43 (patch)
treeda30cbbe5e5f3c775029e38108f63aa8b8cd17b7 /sys/kern/vfs_export.c
parent4cc7d69521756e89ce3e5ea28211fda13fc4c9ff (diff)
downloadFreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.zip
FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r--sys/kern/vfs_export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 44b1698..23a4e83 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.182 1999/01/10 01:58:26 eivind Exp $
+ * $Id: vfs_subr.c,v 1.183 1999/01/21 08:29:05 dillon Exp $
*/
/*
@@ -1594,7 +1594,7 @@ vclean(vp, flags, p)
* Clean out any buffers associated with the vnode.
*/
vinvalbuf(vp, V_SAVE, NOCRED, p, 0, 0);
- if (obj = vp->v_object) {
+ if ((obj = vp->v_object) != NULL) {
if (obj->ref_count == 0) {
/*
* This is a normal way of shutting down the object/vnode
OpenPOWER on IntegriCloud