aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-08-17 22:13:06 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-08-17 22:13:06 +0000
commita4447566250c1792ce85256dc0d27778c003da49 (patch)
tree4c71519cb115f0164280f4076361ecf103e87592
parent4fae07fae9847af16cb72538af909a758a1497a2 (diff)
downloadsrc-a4447566250c1792ce85256dc0d27778c003da49.tar.gz
src-a4447566250c1792ce85256dc0d27778c003da49.zip
(1) Fix a spelling mistake in a comment.
(2) Add braces to avoid ambigious if/if/else Reviewed by: bde
Notes
Notes: svn path=/head/; revision=49990
-rw-r--r--sys/pccard/pcic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 278c388f5ed4..5a637abd1458 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -760,15 +760,16 @@ pcic_probe(void)
pcic_imask = soft_imask;
/* See if the user has requested a specific IRQ */
- if (getenv_int("machdep.pccard.pcic_irq", &desired_irq))
+ if (getenv_int("machdep.pccard.pcic_irq", &desired_irq)) {
/* legal IRQ? */
if (desired_irq >= 1 &&
desired_irq <= ICU_LEN &&
(1ul << desired_irq) & free_irqs)
free_irqs = 1ul << desired_irq;
else
- /* illeagal, disable use of IRQ */
+ /* illegal, disable use of IRQ */
free_irqs = 0;
+ }
pcic_irq = pccard_alloc_intr(free_irqs,
pcicintr, 0, &pcic_imask, NULL);