HomeFreeBSD

Cleanup: Remove branches that always evaluate the same way

Description

Cleanup: Remove branches that always evaluate the same way

Coverity reported that the ASSERT in taskq_create() is always true and
the *offp > MAXOFFSET_T check in zfs_file_seek() is always false.

We delete them as cleanup.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14130

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Nov 3 2022, 5:47 PM
GitHub <noreply@github.com>Committed on Nov 3 2022, 5:47 PM
Parents
rG1e1ce10e5579: Remove an unused variable
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG11e3416ae78d: Cleanup: Remove branches that always evaluate the same way (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Nov 3 2022, 5:47 PM