summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 262b235..bb3065e 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -387,7 +387,7 @@ kern_fstatfs(struct thread *td, int fd, struct statfs *buf)
AUDIT_ARG_VNODE1(vp);
#endif
mp = vp->v_mount;
- if (mp)
+ if (mp != NULL)
vfs_ref(mp);
VOP_UNLOCK(vp, 0);
fdrop(fp, td);
OpenPOWER on IntegriCloud