HomeFreeBSD

- Remove ancient checks for sim->softc == NULL. It can't be NULL, as it is
rS241432Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Remove ancient checks for sim->softc == NULL. It can't be NULL, as it is

set not-NULL during SIM registration and set to UMASS_GONE on destruction.
Debug messages there look broken for at least 9 years, as they dereference
softc value that was just checked to be equal to NULL.

  • Remove magic pointer value UMASS_GONE and use simple NULL instead.

Found by: Clang Static Analyzer

Details

Provenance
mavAuthored on
Parents
rS241431: Add man pages for nvme(4) and nvd(4).
Branches
Unknown
Tags
Unknown

Event Timeline