summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-05-10 18:33:52 +0000
committerjhb <jhb@FreeBSD.org>2004-05-10 18:33:52 +0000
commitda67f4fe48b94bf800a905d00a74d7074cbeb33a (patch)
treeb5771a91664c4704864922d30b3f500bb599b744
parentc11a15c8fe9ac745f0f4b87952f955700c7f98f7 (diff)
downloadFreeBSD-src-da67f4fe48b94bf800a905d00a74d7074cbeb33a.zip
FreeBSD-src-da67f4fe48b94bf800a905d00a74d7074cbeb33a.tar.gz
- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
- Fixup grammar in a comment. Submitted by: bde (1)
-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 768ad99..9667c04 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;
OpenPOWER on IntegriCloud