]> git.proxmox.com Git - mirror_zfs.git/commit
Cleanup: Delete unnecessary pointer check from vdev_to_nvlist_iter()
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Sun, 16 Oct 2022 04:42:03 +0000 (00:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 18 Oct 2022 22:39:32 +0000 (15:39 -0700)
commitd953bcbf6b28653959a98602665b6c6fc186cef8
tree78efbbcb3d556ad4b27f3a04440d402a6e31651b
parent9a8039439a6cee003c7da0eedf7a54486c7145f7
Cleanup: Delete unnecessary pointer check from vdev_to_nvlist_iter()

This confused Clang's static analyzer, making it think there was a
possible NULL pointer dereference. There is no NULL pointer dereference.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14042
lib/libzfs/libzfs_pool.c