Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Localize one more variable to NPCI > 0 block. F...



details:   https://anonhg.NetBSD.org/src/rev/93b53d7864b0
branches:  trunk
changeset: 366610:93b53d7864b0
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jun 02 00:12:20 2022 +0000

description:
Localize one more variable to NPCI > 0 block. Fix ia64 build.

diffstat:

 sys/dev/acpi/acpi_verbose.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r ece845ffe158 -r 93b53d7864b0 sys/dev/acpi/acpi_verbose.c
--- a/sys/dev/acpi/acpi_verbose.c       Wed Jun 01 21:01:44 2022 +0000
+++ b/sys/dev/acpi/acpi_verbose.c       Thu Jun 02 00:12:20 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_verbose.c,v 1.21 2022/05/31 20:28:57 mrg Exp $ */
+/*     $NetBSD: acpi_verbose.c,v 1.22 2022/06/02 00:12:20 rin Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2010 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_verbose.c,v 1.21 2022/05/31 20:28:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_verbose.c,v 1.22 2022/06/02 00:12:20 rin Exp $");
 
 #include "pci.h"
 
@@ -494,7 +494,6 @@
 acpi_print_tree(struct acpi_devnode *ad, uint32_t level)
 {
        struct acpi_devnode *child;
-       device_t dev;
        char buf[5];
        uint32_t i;
 
@@ -537,7 +536,7 @@
                            ad->ad_pciinfo->ap_segment,
                            ad->ad_pciinfo->ap_downbus);
 
-               dev = acpi_pcidev_find_dev(ad);
+               device_t dev = acpi_pcidev_find_dev(ad);
 
                if (dev != NULL)
                        aprint_normal(" <%s>", device_xname(dev));



Home | Main Index | Thread Index | Old Index