]> git.proxmox.com Git - mirror_zfs.git/commit
kmem_zalloc with KM_SLEEP will never return NULL
authorluozhengzheng <luo.zhengzheng@zte.com.cn>
Wed, 31 Aug 2016 01:32:02 +0000 (09:32 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Sep 2016 18:39:45 +0000 (11:39 -0700)
commitca8587a5172628e282b5b0ac1b2165b212e35601
tree5a898599e2f75ef2d5e8ba121cc39aba1f439548
parent2d96d7aa56ea4a95206478474b2244be67a71853
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
module/zfs/fm.c
module/zpios/pios.c