aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-05-10 18:33:52 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-05-10 18:33:52 +0000
commitffe2232b31e26c002a7f9550eae18fa94cd97ba9 (patch)
treeb5771a91664c4704864922d30b3f500bb599b744 /sys/i386/isa
parent0fd166d7dafe68f63b0b14f1b7b08e64ee79b0a4 (diff)
downloadsrc-ffe2232b31e26c002a7f9550eae18fa94cd97ba9.tar.gz
src-ffe2232b31e26c002a7f9550eae18fa94cd97ba9.zip
- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
- Fixup grammar in a comment. Submitted by: bde (1)
Notes
Notes: svn path=/head/; revision=129095
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/atpic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/atpic.c b/sys/i386/isa/atpic.c
index 768ad99b3751..9667c044f516 100644
--- a/sys/i386/isa/atpic.c
+++ b/sys/i386/isa/atpic.c
@@ -177,7 +177,7 @@ static struct atpic_intsrc atintrs[] = {
INTSRC(15),
};
-CTASSERT(sizeof(atintrs) / sizeof(struct atpic_intsrc) == NUM_ISA_IRQS);
+CTASSERT(sizeof(atintrs) / sizeof(atintrs[0]) == NUM_ISA_IRQS);
static void
atpic_enable_source(struct intsrc *isrc)
@@ -448,8 +448,8 @@ atpic_startup(void)
* we have one and as an optimization to avoid masking edge
* triggered interrupts. For the case that we don't have an ELCR,
* it doesn't hurt to mask an edge triggered interrupt, so we
- * that is why we assume level trigger for any interrupt that we
- * aren't sure is edge triggered.
+ * assume level trigger for any interrupt that we aren't sure is
+ * edge triggered.
*/
if (elcr_probe() == 0) {
using_elcr = 1;