Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP
@@ -1013,14 +1013,10 @@
*/
dev->d_intrcnt = 1;
dev->d_intrsize = count * sizeof (ddi_intr_handle_t);
dev->d_intrh = kmem_zalloc(dev->d_intrsize, KM_SLEEP);
- if (dev->d_intrh == NULL) {
- yge_error(dev, NULL, "Unable to allocate interrupt handle");
- return (DDI_FAILURE);
- }
rv = ddi_intr_alloc(dip, dev->d_intrh, intr_type, 0, dev->d_intrcnt,
&actual, DDI_INTR_ALLOC_STRICT);
if ((rv != DDI_SUCCESS) || (actual == 0)) {
yge_error(dev, NULL,