HomeFreeBSD

Cleanup: zvol_add_clones() should not NULL check dp

Description

Cleanup: zvol_add_clones() should not NULL check dp

It is never NULL because we return early if dsl_pool_hold() fails.

This caused Coverity to complain.

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 17 2022, 6:18 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 18 2022, 10:39 PM
Parents
rGef55679a75f0: Cleanup: metaslab_alloc_dva() should not NULL check mg->mg_next
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG717641ac0931: Cleanup: zvol_add_clones() should not NULL check dp (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 18 2022, 10:39 PM