From b4c33f6473cdcb79e37999feaed7da5256689d66 Mon Sep 17 00:00:00 2001 From: mav Date: Thu, 4 Apr 2013 17:08:49 +0000 Subject: Remove xpt_sim_opened(), the only consumer of which was atapicam, which is now gone. --- sys/cam/cam_xpt.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'sys/cam/cam_xpt.c') diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 23e16f0..068e26a 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -2062,39 +2062,6 @@ xptbustraverse(struct cam_eb *start_bus, xpt_busfunc_t *tr_func, void *arg) return(retval); } -int -xpt_sim_opened(struct cam_sim *sim) -{ - struct cam_eb *bus; - struct cam_et *target; - struct cam_ed *device; - struct cam_periph *periph; - - KASSERT(sim->refcount >= 1, ("sim->refcount >= 1")); - mtx_assert(sim->mtx, MA_OWNED); - - xpt_lock_buses(); - TAILQ_FOREACH(bus, &xsoftc.xpt_busses, links) { - if (bus->sim != sim) - continue; - - TAILQ_FOREACH(target, &bus->et_entries, links) { - TAILQ_FOREACH(device, &target->ed_entries, links) { - SLIST_FOREACH(periph, &device->periphs, - periph_links) { - if (periph->refcount > 0) { - xpt_unlock_buses(); - return (1); - } - } - } - } - } - - xpt_unlock_buses(); - return (0); -} - static int xpttargettraverse(struct cam_eb *bus, struct cam_et *start_target, xpt_targetfunc_t *tr_func, void *arg) -- cgit v1.1