Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

@@ -85,12 +85,10 @@
 ccmp_attach(struct ieee80211com *ic, struct ieee80211_key *k)
 {
         struct ccmp_ctx *ctx;
 
         ctx = kmem_zalloc(sizeof (struct ccmp_ctx), KM_SLEEP);
-        if (ctx == NULL)
-                return (NULL);
 
         ctx->cc_ic = ic;
         return (ctx);
 }