o Make this code a little easier to understand by using simpler if
  statements, but nesting them.
This commit is contained in:
Warner Losh 2002-11-14 05:18:53 +00:00
parent f02993557a
commit dfe5056e80

View File

@ -992,10 +992,13 @@ cbb_insert(struct cbb_softc *sc)
static void static void
cbb_removal(struct cbb_softc *sc) cbb_removal(struct cbb_softc *sc)
{ {
if (sc->flags & CBB_16BIT_CARD && sc->pccarddev != NULL) if (sc->flags & CBB_16BIT_CARD) {
CARD_DETACH_CARD(sc->pccarddev); if (sc->pccarddev != NULL)
else if ((!(sc->flags & CBB_16BIT_CARD)) && sc->cbdev != NULL) CARD_DETACH_CARD(sc->pccarddev);
CARD_DETACH_CARD(sc->cbdev); } else {
if (sc->cbdev != NULL)
CARD_DETACH_CARD(sc->cbdev);
}
cbb_destroy_res(sc); cbb_destroy_res(sc);
} }