MFp4:
o Make this code a little easier to understand by using simpler if statements, but nesting them.
This commit is contained in:
parent
f02993557a
commit
dfe5056e80
@ -992,10 +992,13 @@ cbb_insert(struct cbb_softc *sc)
|
||||
static void
|
||||
cbb_removal(struct cbb_softc *sc)
|
||||
{
|
||||
if (sc->flags & CBB_16BIT_CARD && sc->pccarddev != NULL)
|
||||
CARD_DETACH_CARD(sc->pccarddev);
|
||||
else if ((!(sc->flags & CBB_16BIT_CARD)) && sc->cbdev != NULL)
|
||||
CARD_DETACH_CARD(sc->cbdev);
|
||||
if (sc->flags & CBB_16BIT_CARD) {
|
||||
if (sc->pccarddev != NULL)
|
||||
CARD_DETACH_CARD(sc->pccarddev);
|
||||
} else {
|
||||
if (sc->cbdev != NULL)
|
||||
CARD_DETACH_CARD(sc->cbdev);
|
||||
}
|
||||
cbb_destroy_res(sc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user