From owner-svn-src-head@FreeBSD.ORG Tue Nov 25 19:06:21 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B86B1065679; Tue, 25 Nov 2008 19:06:21 +0000 (UTC) (envelope-from ganbold@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1C58A8FC08; Tue, 25 Nov 2008 19:06:21 +0000 (UTC) (envelope-from ganbold@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAPJ6LMj032048; Tue, 25 Nov 2008 19:06:21 GMT (envelope-from ganbold@svn.freebsd.org) Received: (from ganbold@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAPJ6Lvx032047; Tue, 25 Nov 2008 19:06:21 GMT (envelope-from ganbold@svn.freebsd.org) Message-Id: <200811251906.mAPJ6Lvx032047@svn.freebsd.org> From: Ganbold Tsagaankhuu Date: Tue, 25 Nov 2008 19:06:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185308 - head/sys/dev/acpica X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 19:06:21 -0000 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); }