No point in calling scsi_link_shutdown() if link->pool is NULL.
authorkrw <krw@openbsd.org>
Mon, 21 Mar 2022 00:20:40 +0000 (00:20 +0000)
committerkrw <krw@openbsd.org>
Mon, 21 Mar 2022 00:20:40 +0000 (00:20 +0000)
commit22d8fe70649cb743196d9b60e48a177d1c9e462b
treebe13de54083f92821668bce272e59690ad79af61
parentc51f890aecc5418802e6eabe11371171c98cbd46
No point in calling scsi_link_shutdown() if link->pool is NULL.

Ditto config_detach() if link->device_softc is NULL.

Currently just some extra paranoia, but will allow simplification
of exit logic in scsi_probe_link() and other future uses of
scsi_detach_link() on partially configured links.

No intentional functional change.
sys/scsi/scsiconf.c