From 189e41259bcda875890c9df5bea59d14a0bbc33c Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 28 Jun 2013 20:14:30 +0000 Subject: [PATCH] Garbage collect an useless check. smp should be never NULL. --- sys/fs/smbfs/smbfs_vfsops.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 66512e922e40..2d33df3e0e53 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);