svn commit: r185308 - head/sys/dev/acpica

Ganbold Tsagaankhuu ganbold at FreeBSD.org
Tue Nov 25 11:06:21 PST 2008


Author: ganbold (doc committer)
Date: Tue Nov 25 19:06:20 2008
New Revision: 185308
URL: http://svn.freebsd.org/changeset/base/185308

Log:
  Remove unused variable.
  
  Found with:     Coverity Prevent(tm)
  CID: 3678
  
  Approved by: njl

Modified:
  head/sys/dev/acpica/acpi_pcib.c

Modified: head/sys/dev/acpica/acpi_pcib.c
==============================================================================
--- head/sys/dev/acpica/acpi_pcib.c	Tue Nov 25 19:05:46 2008	(r185307)
+++ head/sys/dev/acpica/acpi_pcib.c	Tue Nov 25 19:06:20 2008	(r185308)
@@ -127,7 +127,6 @@ prt_attach_devices(ACPI_PCI_ROUTING_TABL
 int
 acpi_pcib_attach(device_t dev, ACPI_BUFFER *prt, int busno)
 {
-    device_t			child;
     ACPI_STATUS			status;
 
     ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
@@ -157,7 +156,7 @@ acpi_pcib_attach(device_t dev, ACPI_BUFF
     /*
      * Attach the PCI bus proper.
      */
-    if ((child = device_add_child(dev, "pci", busno)) == NULL) {
+    if (device_add_child(dev, "pci", busno) == NULL) {
 	device_printf(device_get_parent(dev), "couldn't attach pci bus\n");
 	return_VALUE(ENXIO);
     }


More information about the svn-src-head mailing list