summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_vfsops.c
diff options
context:
space:
mode:
authordavide <davide@FreeBSD.org>2013-06-28 20:14:30 +0000
committerdavide <davide@FreeBSD.org>2013-06-28 20:14:30 +0000
commita47b6265f23d432d4634515478730a496a732b37 (patch)
treef8134eb50c48c80a81ea311d37c097ae96328cee /sys/fs/smbfs/smbfs_vfsops.c
parentcf63c799c6a9b82e8c05f3cef17d1df483653c13 (diff)
downloadFreeBSD-src-a47b6265f23d432d4634515478730a496a732b37.zip
FreeBSD-src-a47b6265f23d432d4634515478730a496a732b37.tar.gz
Garbage collect an useless check. smp should be never NULL.
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c
index 66512e9..2d33df3 100644
--- a/sys/fs/smbfs/smbfs_vfsops.c
+++ b/sys/fs/smbfs/smbfs_vfsops.c
@@ -324,11 +324,6 @@ smbfs_root(struct mount *mp, int flags, struct vnode **vpp)
td = curthread;
cred = td->td_ucred;
- if (smp == NULL) {
- SMBERROR("smp == NULL (bug in umount)\n");
- vfs_mount_error(mp, "smp == NULL (bug in umount)");
- return EINVAL;
- }
if (smp->sm_root) {
*vpp = SMBTOV(smp->sm_root);
return vget(*vpp, LK_EXCLUSIVE | LK_RETRY, td);
OpenPOWER on IntegriCloud