]> git.proxmox.com Git - mirror_zfs.git/commit
Suppress static analyzer warning in dmu_objset_create_impl_dnstats()
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Mon, 6 Mar 2023 16:15:37 +0000 (11:15 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 Mar 2023 21:52:15 +0000 (13:52 -0800)
commit08641d9007850fcd6dc43b4526b10db537f21d1f
tree7179ae850c62ba8773c101dca06ed641149250cf
parent703283fabd147e2147a93fc9d83d9ca57b3c0fdd
Suppress static analyzer warning in dmu_objset_create_impl_dnstats()

ae7e7006500ca37c471dd625cd5cbfc590b49885 added an assertion to suppress
a complaint from Clang's static analyzer. Unfortunately, it missed
another way for Clang to complain about this function. This adds another
assertion to handle that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14575
module/zfs/dmu_objset.c