Module Name:    src
Committed By:   riastradh
Date:           Fri Feb 11 23:19:59 UTC 2022

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

Log Message:
acpi(9): No need to test dv_locators.

It is always initialized by config_devalloc before config_devlink
makes it visible to device iteration.  No need to reach into private
autoconf internals.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/acpi/acpi_pci.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_pci.c
diff -u src/sys/dev/acpi/acpi_pci.c:1.34 src/sys/dev/acpi/acpi_pci.c:1.35
--- src/sys/dev/acpi/acpi_pci.c:1.34	Sat Jan 22 11:49:17 2022
+++ src/sys/dev/acpi/acpi_pci.c	Fri Feb 11 23:19:59 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_pci.c,v 1.34 2022/01/22 11:49:17 thorpej Exp $ */
+/* $NetBSD: acpi_pci.c,v 1.35 2022/02/11 23:19:59 riastradh Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_pci.c,v 1.34 2022/01/22 11:49:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_pci.c,v 1.35 2022/02/11 23:19:59 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -472,9 +472,6 @@ acpi_pcidev_find_dev(struct acpi_devnode
 		if (pr == NULL || device_is_a(pr, "pci") != true)
 			continue;
 
-		if (dv->dv_locators == NULL)	/* This should not happen. */
-			continue;
-
 		pci = device_private(pr);
 
 		if (pci->sc_bus == ap->ap_bus &&

Reply via email to