Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 20:14:31 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252353 - head/sys/fs/smbfs
Message-ID:  <201306282014.r5SKEVax081738@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davide
Date: Fri Jun 28 20:14:30 2013
New Revision: 252353
URL: http://svnweb.freebsd.org/changeset/base/252353

Log:
  Garbage collect an useless check. smp should be never NULL.

Modified:
  head/sys/fs/smbfs/smbfs_vfsops.c

Modified: head/sys/fs/smbfs/smbfs_vfsops.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_vfsops.c	Fri Jun 28 20:07:24 2013	(r252352)
+++ head/sys/fs/smbfs/smbfs_vfsops.c	Fri Jun 28 20:14:30 2013	(r252353)
@@ -324,11 +324,6 @@ smbfs_root(struct mount *mp, int flags, 
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306282014.r5SKEVax081738>