Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 08:40:51 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196580 - head/sys/geom/multipath
Message-ID:  <200908270840.n7R8ep2R089597@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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