diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-12-30 22:03:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-12-30 22:03:46 +0000 |
commit | 3d5aafd38fa19bf2b4fb8a7d40b043ebf9e0e9f9 (patch) | |
tree | 6ee055105664f4808996d56db5888f736ebc3307 /sys/dev | |
parent | 0c9b35fa9b3c6c31be21518f819ae52e7ef615c5 (diff) |
indent
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pcmcia/com_pcmcia.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sys/dev/pcmcia/com_pcmcia.c b/sys/dev/pcmcia/com_pcmcia.c index af5ac6cbc98..4c0ed4c197d 100644 --- a/sys/dev/pcmcia/com_pcmcia.c +++ b/sys/dev/pcmcia/com_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_pcmcia.c,v 1.7 1998/12/21 14:59:31 niklas Exp $ */ +/* $OpenBSD: com_pcmcia.c,v 1.8 1998/12/30 22:03:45 deraadt Exp $ */ /* $NetBSD: com_pcmcia.c,v 1.15 1998/08/22 17:47:58 msaitoh Exp $ */ /*- @@ -158,7 +158,7 @@ com_dev_match(card) for (i = 0; i < com_devs_size; i++) { for (j = 0; j < 4; j++) - if (com_devs[i].cis1_info[j] && + if (com_devs[i].cis1_info[j] && strcmp(com_devs[i].cis1_info[j], card->cis1_info[j])) break; @@ -187,28 +187,28 @@ com_pcmcia_match(parent, match, aux) comportmask = 0; for (cfe = pa->pf->cfe_head.sqh_first; cfe; cfe = cfe->cfe_list.sqe_next) { - switch (cfe->iospace[0].start) { - case IO_COM1: - comportmask |= 1; - break; - case IO_COM2: - comportmask |= 2; - break; - case IO_COM3: - comportmask |= 4; - break; - case IO_COM4: - comportmask |= 8; - break; - } + switch (cfe->iospace[0].start) { + case IO_COM1: + comportmask |= 1; + break; + case IO_COM2: + comportmask |= 2; + break; + case IO_COM3: + comportmask |= 4; + break; + case IO_COM4: + comportmask |= 8; + break; + } } if (comportmask == 15) - return 1; + return 1; /* 3. Is this a card we know about? */ if (com_dev_match(pa->card) != NULL) - return 1; + return 1; return 0; } @@ -297,7 +297,7 @@ found: psc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_TTY, comintr, sc); if (psc->sc_ih == NULL) printf("%s: couldn't establish interrupt\n", - sc->sc_dev.dv_xname); + sc->sc_dev.dv_xname); #ifdef notyet sc->enabled = 0; @@ -317,7 +317,7 @@ com_pcmcia_enable(sc) psc->sc_ih = pcmcia_intr_establish(pf, IPL_TTY, comintr, sc); if (psc->sc_ih == NULL) { printf("%s: couldn't establish interrupt\n", - sc->sc_dev.dv_xname); + sc->sc_dev.dv_xname); return (1); } return com_pcmcia_enable1(sc); |