freebsd-dev/sys/cam/scsi
David Bright 3420c04b44 CID 1009492: Logically dead code in sys/cam/scsi/scsi_xpt.c
In `probedone()`, for the `PROBE_REPORT_LUNS` case, all paths that
fall to the bottom of the case set `lp` to `NULL`, so the test for a
non-NULL value of `lp` and call to `free()` if true is dead code as
the test can never be true. Fix by eliminating the whole if
statement. To guard against a possible future change that accidentally
violates this assumption, use a `KASSERT()` to catch if `lp` is
non-NULL.

Reviewed by:	cem
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D19109
2019-02-11 22:09:26 +00:00
..
scsi_all.c Send a START UNIT command when a disk responds with an ASC of 04/1C. 2018-12-09 21:37:34 +00:00
scsi_all.h Introduce scsi_ata_setfeatures() as a convenient way to make 2018-11-15 16:02:34 +00:00
scsi_cd.c Move 32-bit compat support for CDIOREADTOCENTRYS to the right place. 2018-10-02 23:23:56 +00:00
scsi_cd.h
scsi_ch.c cam_periph_acquire() now returns an errno. 2018-03-19 20:19:00 +00:00
scsi_ch.h
scsi_da.c Add quirk for Sansisk X400 drives 2019-02-05 22:53:36 +00:00
scsi_da.h
scsi_enc_internal.h
scsi_enc_safte.c
scsi_enc_ses.c Use switch instead of chained if/else to improve readability. 2019-02-04 01:20:56 +00:00
scsi_enc.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
scsi_enc.h
scsi_iu.h
scsi_message.h
scsi_pass.c cam_periph_runccb() changed several years ago to overwrite the ccb callback 2018-05-01 20:09:29 +00:00
scsi_pass.h
scsi_pt.c
scsi_pt.h
scsi_sa.c cam_periph_runccb() changed several years ago to overwrite the ccb callback 2018-05-01 20:09:29 +00:00
scsi_sa.h
scsi_ses.h
scsi_sg.c cam_periph_runccb() changed several years ago to overwrite the ccb callback 2018-05-01 20:09:29 +00:00
scsi_sg.h
scsi_targ_bh.c
scsi_target.c
scsi_targetio.h
scsi_xpt.c CID 1009492: Logically dead code in sys/cam/scsi/scsi_xpt.c 2019-02-11 22:09:26 +00:00
smp_all.c
smp_all.h