Only deregister out configuration hook manually if there are no SCSI
busses to configure.
This commit is contained in:
parent
a6796db6ce
commit
ecdf111388
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39504
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cam_xpt.c,v 1.6 1998/09/17 23:58:53 ken Exp $
|
||||
* $Id: cam_xpt.c,v 1.7 1998/09/18 19:55:34 ken Exp $
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -5368,10 +5368,11 @@ xpt_config(void *arg)
|
||||
/* Scan all installed busses */
|
||||
xpt_for_all_busses(xptconfigbuscountfunc, NULL);
|
||||
|
||||
xpt_for_all_busses(xptconfigfunc, NULL);
|
||||
|
||||
/* Call xpt_finishconfig once in case we dodn't have any busses */
|
||||
xpt_finishconfig(xpt_periph, NULL);
|
||||
if (busses_to_config == 0) {
|
||||
/* Call manually because we don't have any busses */
|
||||
xpt_finishconfig(xpt_periph, NULL);
|
||||
} else
|
||||
xpt_for_all_busses(xptconfigfunc, NULL);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user