kmem_zalloc(..., KM_SLEEP) will never fail

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
This commit is contained in:
shenyan1
2013-06-29 19:07:45 +08:00
committed by Brian Behlendorf
parent ab68b6e5db
commit 0a6bef26ec
2 changed files with 1 additions and 5 deletions
-2
View File
@@ -5136,8 +5136,6 @@ zfsdev_state_init(struct file *filp)
return (ENXIO);
zs = kmem_zalloc( sizeof(zfsdev_state_t), KM_SLEEP);
if (zs == NULL)
return (ENOMEM);
zs->zs_file = filp;
zs->zs_minor = minor;