From owner-svn-src-all@FreeBSD.ORG Thu Aug 27 08:40:51 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5D73106568E; Thu, 27 Aug 2009 08:40:51 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 94B998FC1C; Thu, 27 Aug 2009 08:40:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7R8epL5089599; Thu, 27 Aug 2009 08:40:51 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7R8ep2R089597; Thu, 27 Aug 2009 08:40:51 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <200908270840.n7R8ep2R089597@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 27 Aug 2009 08:40:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196580 - head/sys/geom/multipath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 08:40:51 -0000 Author: pjd Date: Thu Aug 27 08:40:51 2009 New Revision: 196580 URL: http://svn.freebsd.org/changeset/base/196580 Log: There's no need for checking result of M_WAITOK allocation. Modified: head/sys/geom/multipath/g_multipath.c Modified: head/sys/geom/multipath/g_multipath.c ============================================================================== --- head/sys/geom/multipath/g_multipath.c Thu Aug 27 08:28:34 2009 (r196579) +++ head/sys/geom/multipath/g_multipath.c Thu Aug 27 08:40:51 2009 (r196580) @@ -295,10 +295,6 @@ g_multipath_create(struct g_class *mp, s } sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); - if (sc == NULL) { - goto fail; - } - gp->softc = sc; gp->start = g_multipath_start; gp->orphan = g_multipath_orphan;