HomeFreeBSD

cppcheck: remove redundant ASSERTs

Description

cppcheck: remove redundant ASSERTs

The ASSERT that the passed pointer isn't NULL appears after the
pointer has already been dereferenced. Remove the redundant check.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11508

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 23 2021, 5:24 AM
Parents
rG6fc1ce07239f: cppcheck: resolve double free
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2cdd75bed7aa: cppcheck: remove redundant ASSERTs (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 27 2021, 12:12 AM