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
This commit is contained in:
parent
9a8039439a
commit
d953bcbf6b
|
@ -2678,7 +2678,7 @@ vdev_to_nvlist_iter(nvlist_t *nv, nvlist_t *search, boolean_t *avail_spare,
|
|||
if (zfs_strcmp_pathname(srchval, val, wholedisk) == 0)
|
||||
return (nv);
|
||||
|
||||
} else if (strcmp(srchkey, ZPOOL_CONFIG_TYPE) == 0 && val) {
|
||||
} else if (strcmp(srchkey, ZPOOL_CONFIG_TYPE) == 0) {
|
||||
char *type, *idx, *end, *p;
|
||||
uint64_t id, vdev_id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue