Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP
@@ -567,15 +567,10 @@
ring->physaddr = ring->txdesc_dma.cookie.dmac_address;
bzero(ring->desc, count * sizeof (struct mwl_txdesc));
datadlen = count * sizeof (struct mwl_txbuf);
ring->buf = kmem_zalloc(datadlen, KM_SLEEP);
- if (ring->buf == NULL) {
- MWL_DBG(MWL_DBG_DMA, "mwl: mwl_alloc_tx_ring(): "
- "could not alloc tx ring data buffer\n");
- return (DDI_FAILURE);
- }
bzero(ring->buf, count * sizeof (struct mwl_txbuf));
for (i = 0; i < count; i++) {
ds = &ring->desc[i];
bf = &ring->buf[i];
@@ -2224,16 +2219,10 @@
mwl_node_alloc(struct ieee80211com *ic)
{
struct mwl_node *mn;
mn = kmem_zalloc(sizeof (struct mwl_node), KM_SLEEP);
- if (mn == NULL) {
- /* XXX stat+msg */
- MWL_DBG(MWL_DBG_MSG, "mwl: mwl_node_alloc(): "
- "alloc node failed\n");
- return (NULL);
- }
return (&mn->mn_node);
}
static void
mwl_node_free(struct ieee80211_node *ni)