From owner-svn-src-head@FreeBSD.ORG Fri Jun 28 20:14:31 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 53FF5573; Fri, 28 Jun 2013 20:14:31 +0000 (UTC) (envelope-from davide@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4709B1361; Fri, 28 Jun 2013 20:14:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5SKEVrf081739; Fri, 28 Jun 2013 20:14:31 GMT (envelope-from davide@svn.freebsd.org) Received: (from davide@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5SKEVax081738; Fri, 28 Jun 2013 20:14:31 GMT (envelope-from davide@svn.freebsd.org) Message-Id: <201306282014.r5SKEVax081738@svn.freebsd.org> From: Davide Italiano Date: Fri, 28 Jun 2013 20:14:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252353 - head/sys/fs/smbfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jun 2013 20:14:31 -0000 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);