By definitition these allocations will never fail. For
consistency with the rest of the code remove this dead error
handling code.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1558
return (ENXIO);
zs = kmem_zalloc( sizeof(zfsdev_state_t), KM_SLEEP);
- if (zs == NULL)
- return (ENOMEM);
zs->zs_file = filp;
zs->zs_minor = minor;
int error = 0;
zv = kmem_zalloc(sizeof (zvol_state_t), KM_SLEEP);
- if (zv == NULL)
- goto out;
zv->zv_queue = blk_init_queue(zvol_request, &zv->zv_lock);
if (zv->zv_queue == NULL)
blk_cleanup_queue(zv->zv_queue);
out_kmem:
kmem_free(zv, sizeof (zvol_state_t));
-out:
+
return NULL;
}