Module Name:    src
Committed By:   rin
Date:           Thu Jun  2 00:12:20 UTC 2022

Modified Files:
        src/sys/dev/acpi: acpi_verbose.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/acpi/acpi_verbose.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi_verbose.c
diff -u src/sys/dev/acpi/acpi_verbose.c:1.21 src/sys/dev/acpi/acpi_verbose.c:1.22
--- src/sys/dev/acpi/acpi_verbose.c:1.21	Tue May 31 20:28:57 2022
+++ src/sys/dev/acpi/acpi_verbose.c	Thu Jun  2 00:12:20 2022
@@ -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 @@ static void
 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 @@ acpi_print_tree(struct acpi_devnode *ad,
 			    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));

Reply via email to