5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP 5254 getrbuf won't fail with KM_SLEEP
@@ -5977,16 +5977,10 @@ /* * Allocate page aligned buffer space */ *fcode_addr = kmem_zalloc(ptob(btopr(*fcode_size)), KM_SLEEP); - if (*fcode_addr == NULL) { - DEBUG0("kmem_zalloc returned NULL\n"); - pcicfg_unmap_phys(&h, &p); - return (PCICFG_FAILURE); - } - DEBUG1("Fcode Addr %lx\n", *fcode_addr); ddi_rep_get8(h, *fcode_addr, addr + start_of_fcode, *fcode_size, DDI_DEV_AUTOINCR);