HomeFreeBSD

sym(4): fix nits reported by Coverity

Description

sym(4): fix nits reported by Coverity

  • In ___dma_getp(), remove dead code. [1]
  • In sym_sir_bad_scsi_status(), add missing FALLTHROUGH. [2]

While at it:

  • For getbaddrcb(), remove __unused from the nseg argument as it's in fact used when compiling with INVARIANTS.
  • In sym_int_sir(), ensure in all branches that cp is not NULL before using it.

Reported by: Coverity
CID: 1008861 [1], 114996 [2]

Details

Provenance
mariusAuthored on Jan 21 2021, 10:34 PM
Parents
rGc62ee7332e4d: fb_if: remove unused method
Branches
Unknown
Tags
Unknown