From 0a6bef26ec80ee4db5f5340bbc007a45311e0415 Mon Sep 17 00:00:00 2001 From: shenyan1 Date: Sat, 29 Jun 2013 19:07:45 +0800 Subject: 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 Closes #1558 --- module/zfs/zfs_ioctl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'module/zfs/zfs_ioctl.c') 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; -- cgit v1.2.3