Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2012 09:26:27 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241067 - head/sys/dev/mmc
Message-ID:  <201209300926.q8U9QRDo003069@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Sun Sep 30 09:26:26 2012
New Revision: 241067
URL: http://svn.freebsd.org/changeset/base/241067

Log:
  Remove an unneeded NULL check after M_WAITOK.

Modified:
  head/sys/dev/mmc/mmc.c

Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c	Sun Sep 30 09:21:10 2012	(r241066)
+++ head/sys/dev/mmc/mmc.c	Sun Sep 30 09:26:26 2012	(r241067)
@@ -1261,8 +1261,6 @@ mmc_discover_cards(struct mmc_softc *sc)
 		if (newcard) {
 			ivar = malloc(sizeof(struct mmc_ivars), M_DEVBUF,
 			    M_WAITOK | M_ZERO);
-			if (!ivar)
-				return;
 			memcpy(ivar->raw_cid, raw_cid, sizeof(raw_cid));
 		}
 		if (mmcbr_get_ro(sc->dev))



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