Lines 546-557
Link Here
|
546 |
g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, gp->name); |
546 |
g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, gp->name); |
547 |
g_topology_assert(); |
547 |
g_topology_assert(); |
548 |
|
548 |
|
|
|
549 |
KASSERT(gp != NULL, ("NULL geom")); |
549 |
if (gp->softc == NULL) { |
550 |
if (gp->softc == NULL) { |
550 |
DPRINTF(("%s(%s): gp->softc == NULL\n", __func__, gp->name)); |
551 |
DPRINTF(("%s(%s): gp->softc == NULL\n", __func__, gp->name)); |
551 |
return (ENXIO); |
552 |
return (ENXIO); |
552 |
} |
553 |
} |
553 |
|
554 |
|
554 |
KASSERT(gp != NULL, ("NULL geom")); |
|
|
555 |
pp = LIST_FIRST(&gp->provider); |
555 |
pp = LIST_FIRST(&gp->provider); |
556 |
KASSERT(pp != NULL, ("NULL provider")); |
556 |
KASSERT(pp != NULL, ("NULL provider")); |
557 |
if (pp->acr > 0 || pp->acw > 0 || pp->ace > 0) |
557 |
if (pp->acr > 0 || pp->acw > 0 || pp->ace > 0) |