summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-03-06 01:15:28 +0000
committerkevlo <kevlo@FreeBSD.org>2007-03-06 01:15:28 +0000
commit0200aec83071622814a735ccc8d4fd0223e56b14 (patch)
tree23ffd06bf0d29edf641147ef75a2e342a88d1dfd
parent2af792b8915a6aab423f7f69284ebc8498a1fdda (diff)
downloadFreeBSD-src-0200aec83071622814a735ccc8d4fd0223e56b14.zip
FreeBSD-src-0200aec83071622814a735ccc8d4fd0223e56b14.tar.gz
Reverse this change. malloc() with M_WAITOK never fails.
Noted by: cognet, brian and thompsa
-rw-r--r--sys/arm/xscale/ixp425/ixp425_npe.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/arm/xscale/ixp425/ixp425_npe.c b/sys/arm/xscale/ixp425/ixp425_npe.c
index c2e05ac..2d5680d 100644
--- a/sys/arm/xscale/ixp425/ixp425_npe.c
+++ b/sys/arm/xscale/ixp425/ixp425_npe.c
@@ -255,8 +255,6 @@ ixpnpe_attach(device_t dev)
/* XXX M_BUS */
sc = malloc(sizeof(struct ixpnpe_softc), M_TEMP, M_WAITOK | M_ZERO);
- if (sc == NULL)
- panic("%s: Cannot allocate softc", device_get_name(dev));
sc->sc_dev = dev;
sc->sc_iot = sa->sc_iot;
mtx_init(&sc->sc_mtx, device_get_nameunit(dev), "npe driver", MTX_DEF);
OpenPOWER on IntegriCloud