]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sym(4): fix nits reported by Coverity
authorMarius Strobl <marius@FreeBSD.org>
Thu, 21 Jan 2021 22:34:19 +0000 (23:34 +0100)
committerMarius Strobl <marius@FreeBSD.org>
Thu, 21 Jan 2021 23:18:39 +0000 (00:18 +0100)
commite60a0db3b8c922f9bcd085f737508a9cb4eb7f29
treeb6e5d36642bbbdff08410cf87fd79c57922eb745
parentc62ee7332e4dc5a9c4cbec47c967b94f8abf1981
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]
sys/dev/sym/sym_hipd.c