Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Use __arraycount(). No functional change.



details:   https://anonhg.NetBSD.org/src/rev/63d086ef166b
branches:  trunk
changeset: 756652:63d086ef166b
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Jul 27 15:16:16 2010 +0000

description:
Use __arraycount().  No functional change.

diffstat:

 sys/dev/acpi/acpi_quirks.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5c1b391465a9 -r 63d086ef166b sys/dev/acpi/acpi_quirks.c
--- a/sys/dev/acpi/acpi_quirks.c        Tue Jul 27 14:34:33 2010 +0000
+++ b/sys/dev/acpi/acpi_quirks.c        Tue Jul 27 15:16:16 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_quirks.c,v 1.14 2010/07/27 06:14:37 jruoho Exp $  */
+/*     $NetBSD: acpi_quirks.c,v 1.15 2010/07/27 15:16:16 pgoyette Exp $        */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.14 2010/07/27 06:14:37 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.15 2010/07/27 15:16:16 pgoyette Exp $");
 
 #include "opt_acpi.h"
 
@@ -120,7 +120,7 @@
        struct acpi_quirk *aqp;
        ACPI_TABLE_HEADER fadt, dsdt, xsdt, *hdr;
 
-       nquirks = sizeof(acpi_quirks) / sizeof(struct acpi_quirk);
+       nquirks = __arraycount(acpi_quirks);
 
        if (ACPI_FAILURE(AcpiGetTableHeader(ACPI_SIG_FADT, 0, &fadt)))
                memset(&fadt, 0, sizeof(fadt));



Home | Main Index | Thread Index | Old Index