Remove unneeded CAM_SIM_MPSAFE check.

This commit is contained in:
Alexander Motin 2009-09-06 18:59:46 +00:00
parent 70f2d05499
commit f96d66a41e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196901

View File

@ -4407,10 +4407,7 @@ xpt_alloc_device(struct cam_eb *bus, struct cam_et *target, lun_id_t lun_id)
device->tag_delay_count = 0;
device->tag_saved_openings = 0;
device->refcount = 1;
if (bus->sim->flags & CAM_SIM_MPSAFE)
callout_init_mtx(&device->callout, bus->sim->mtx, 0);
else
callout_init_mtx(&device->callout, &Giant, 0);
callout_init_mtx(&device->callout, bus->sim->mtx, 0);
/*
* Hold a reference to our parent target so it