Move the code obtaining the LUN 0 scsi_link used to determine the
authorkrw <krw@openbsd.org>
Wed, 2 Mar 2022 13:58:08 +0000 (13:58 +0000)
committerkrw <krw@openbsd.org>
Wed, 2 Mar 2022 13:58:08 +0000 (13:58 +0000)
commitbce6894f9dae3a3d20aca93e78d9a60733fb2a85
tree527c136500b28f32906e33ca4e88f72953282584
parentd21cd6ed5c9c1a8650032086f47607ccb8ef5d4b
Move the code obtaining the LUN 0 scsi_link used to determine the
LUNs available to a target into scsi_get_target_luns(). Clearer
code and prep for future changes.

No functional change.

Extracted from a larger diff submitted by Scott Nicholas via
tech@.
sys/scsi/scsiconf.c