svn commit: r241067 - head/sys/dev/mmc
Kevin Lo
kevlo at FreeBSD.org
Sun Sep 30 09:26:28 UTC 2012
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))
More information about the svn-src-head
mailing list