xpt_bus_deregister() never returns 0, don't test for it.
commitc830df57697e11c8c778f8938596b368c00856fe
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 14 Jun 2007 01:10:25 +0000 (14 01:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 14 Jun 2007 01:10:25 +0000 (14 01:10 +0000)
treedcc1a518f009d1b28602a7cc8985ddb70ae0f34a
parent0cdc0aefd16b096f1644d8bc5497b2165d551fd6
xpt_bus_deregister() never returns 0, don't test for it.

Assert that the sim is attached if a backend sim function is called,
because cam_sim_free() now replaces the functions when the sim is
detached.
sys/dev/usbmisc/umass/umass.c