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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106899
@ -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