HomeFreeBSD

kmem_zalloc with KM_SLEEP will never return NULL

Description

kmem_zalloc with KM_SLEEP will never return NULL

These allocations can never fail. Leaving the error handling
code here gives the impression they can so it has been removed.

Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5048

Details

Provenance
luozhengzheng <luo.zhengzheng@zte.com.cn>Authored on Aug 31 2016, 1:32 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 1 2016, 6:39 PM
Parents
rG2d96d7aa56ea: Fix zfs_unmount() and zfs_unshare_proto() leaks
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGca8587a51726: kmem_zalloc with KM_SLEEP will never return NULL (authored by luozhengzheng <luo.zhengzheng@zte.com.cn>).Sep 1 2016, 6:39 PM