Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/fc766329bc96
branches:  trunk
changeset: 790523:fc766329bc96
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 16 17:30:42 2013 +0000

description:
remove unused variable

diffstat:

 sys/dev/acpi/acpi.c    |  7 +++----
 sys/dev/acpi/acpi_ec.c |  6 ++----
 2 files changed, 5 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r f0a86c6f3b03 -r fc766329bc96 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Wed Oct 16 17:27:42 2013 +0000
+++ b/sys/dev/acpi/acpi.c       Wed Oct 16 17:30:42 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.255 2012/09/23 00:31:06 chs Exp $   */
+/*     $NetBSD: acpi.c,v 1.256 2013/10/16 17:30:42 christos Exp $      */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.255 2012/09/23 00:31:06 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.256 2013/10/16 17:30:42 christos Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -1296,7 +1296,6 @@
 {
        struct acpi_softc *sc = acpi_softc;
        ACPI_STATUS rv;
-       int err;
 
        if (acpi_softc == NULL)
                return;
@@ -1403,7 +1402,7 @@
 
                } else {
 
-                       err = acpi_md_sleep(state);
+                       (void)acpi_md_sleep(state);
 
                        if (state == ACPI_STATE_S4)
                                AcpiEnable();
diff -r f0a86c6f3b03 -r fc766329bc96 sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Wed Oct 16 17:27:42 2013 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Wed Oct 16 17:30:42 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.71 2011/07/24 20:15:09 jakllsch Exp $    */
+/*     $NetBSD: acpi_ec.c,v 1.72 2013/10/16 17:31:01 christos Exp $    */
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.71 2011/07/24 20:15:09 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.72 2013/10/16 17:31:01 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -645,7 +645,6 @@
     uint32_t width, ACPI_INTEGER *value, void *arg, void *region_arg)
 {
        device_t dv;
-       struct acpiec_softc *sc;
        ACPI_STATUS rv;
        uint8_t addr, reg;
        unsigned int i;
@@ -656,7 +655,6 @@
 
        addr = paddr;
        dv = arg;
-       sc = device_private(dv);
 
        rv = AE_OK;
 



Home | Main Index | Thread Index | Old Index