HomeFreeBSD

Cleanup: Delete unnecessary pointer check from vdev_to_nvlist_iter()

Description

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

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 16 2022, 4:42 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 18 2022, 10:39 PM
Parents
rG9a8039439a6c: Cleanup: Simplify userspace abd_free_chunks()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd953bcbf6b28: Cleanup: Delete unnecessary pointer check from vdev_to_nvlist_iter() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 18 2022, 10:39 PM