summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2006-01-15 20:14:11 +0000
committercsjp <csjp@FreeBSD.org>2006-01-15 20:14:11 +0000
commit4f56714639d51648ac88b88d258e6af51adb1ce4 (patch)
treee26887778f1b4075e4e0d6cb6474bba40ec799a4 /sys/kern/vfs_mount.c
parent04dec3098206db1c3d54dc935bedc830fd7e5d54 (diff)
downloadFreeBSD-src-4f56714639d51648ac88b88d258e6af51adb1ce4.zip
FreeBSD-src-4f56714639d51648ac88b88d258e6af51adb1ce4.tar.gz
vfs_busy can only return something useful if MNTK_UNMOUNT has been set.
Since we are using vfs_busy() on a freshly allocated mount structure, use (void) to show that we do not care about the return value. Found with: Coverity Prevent (tm) MFC after: 2 weeks
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 777def9..4b57575 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -419,7 +419,7 @@ vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp,
mp->mnt_nvnodelistsize = 0;
mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF);
lockinit(&mp->mnt_lock, PVFS, "vfslock", 0, 0);
- vfs_busy(mp, LK_NOWAIT, 0, td);
+ (void) vfs_busy(mp, LK_NOWAIT, 0, td);
mp->mnt_op = vfsp->vfc_vfsops;
mp->mnt_vfc = vfsp;
vfsp->vfc_refcount++;
OpenPOWER on IntegriCloud