Date: Tue, 25 Nov 2008 19:06:20 +0000 (UTC) From: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185308 - head/sys/dev/acpica Message-ID: <200811251906.mAPJ6Lvx032047@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811251906.mAPJ6Lvx032047>