summaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_ioctl.c
diff options
context:
space:
mode:
authorshenyan1 <[email protected]>2013-06-29 19:07:45 +0800
committerBrian Behlendorf <[email protected]>2013-07-01 14:51:48 -0700
commit0a6bef26ec80ee4db5f5340bbc007a45311e0415 (patch)
tree9b7f6b6ec91c0a049a7cc3c661c8724ef56d7d1d /module/zfs/zfs_ioctl.c
parentab68b6e5db29abcd20c0c7b12a8c2fa570031c8b (diff)
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 <[email protected]> Closes #1558
Diffstat (limited to 'module/zfs/zfs_ioctl.c')
-rw-r--r--module/zfs/zfs_ioctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c
index e1b8543d3..1226b2cb9 100644
--- a/module/zfs/zfs_ioctl.c
+++ b/module/zfs/zfs_ioctl.c
@@ -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;