Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Don't skip entries in the table, one increment ...



details:   https://anonhg.NetBSD.org/src/rev/6187e3b48ee4
branches:  trunk
changeset: 342954:6187e3b48ee4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jan 15 15:42:57 2016 +0000

description:
Don't skip entries in the table, one increment per iteration is enough.

diffstat:

 sys/dev/acpi/wss_acpi.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 8af1e11c6426 -r 6187e3b48ee4 sys/dev/acpi/wss_acpi.c
--- a/sys/dev/acpi/wss_acpi.c   Fri Jan 15 15:37:05 2016 +0000
+++ b/sys/dev/acpi/wss_acpi.c   Fri Jan 15 15:42:57 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wss_acpi.c,v 1.29 2011/06/02 14:12:25 tsutsui Exp $ */
+/* $NetBSD: wss_acpi.c,v 1.30 2016/01/15 15:42:57 joerg Exp $ */
 
 /*
  * Copyright (c) 2002 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.29 2011/06/02 14:12:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.30 2016/01/15 15:42:57 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/audioio.h>
@@ -77,7 +77,6 @@
        for (idx = 0; idx < __arraycount(wss_acpi_hints); idx++) {
                if (!strcmp(wss_acpi_hints[idx].idstr, idstr))
                        return idx;
-               ++idx;
        }
 
        return -1;



Home | Main Index | Thread Index | Old Index