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

@@ -1042,13 +1042,10 @@
     struct scsi_pkt **pkt)
 {
         m_event_struct_t        *ioc_cmd = NULL;
 
         ioc_cmd = kmem_zalloc(M_EVENT_STRUCT_SIZE, KM_SLEEP);
-        if (ioc_cmd == NULL) {
-                return (DDI_FAILURE);
-        }
         ioc_cmd->m_event_linkp = NULL;
         mptsas_ioc_event_cmdq_add(mpt, ioc_cmd);
         *cmd = &(ioc_cmd->m_event_cmd);
         *pkt = &(ioc_cmd->m_event_pkt);