Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755804Ab0FPFee (ORCPT ); Wed, 16 Jun 2010 01:34:34 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:52352 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754775Ab0FPFdz (ORCPT ); Wed, 16 Jun 2010 01:33:55 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Gd6CBSbqUeLW0OiRr1SCgBoKkRLwpZ/Dw/5I+CdIUbPmJ1Oi53u+NQKPkP3sfa8o/7 40BoUOqXxbiUQCP3TmzfnPh4FbunWONffNtJHC8QbT6dNSuIEOeifV15E4CsaCiH1V6g ZrQDQhmbSR0tBXUn0dsqZ2JEElY+96HbLhBq8= From: "Justin P. Mattock" To: linux-kernel@vger.kernel.org Cc: linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 4/5]pci:setup_bus.c Fix warning: variable 'retval' set but not used Date: Tue, 15 Jun 2010 22:33:53 -0700 Message-Id: <1276666434-11227-5-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 In-Reply-To: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> References: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1401 Lines: 39 The below patch fixes a warning message when using gcc 4.6.0 CC drivers/pci/setup-bus.o drivers/pci/setup-bus.c: In function 'pci_assign_unassigned_bridge_resources': drivers/pci/setup-bus.c:868:6: warning: variable 'retval' set but not used Signed-off-by: Justin P. Mattock --- drivers/pci/setup-bus.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 19b1113..215590b 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -865,7 +865,6 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge) struct pci_bus *parent = bridge->subordinate; int tried_times = 0; struct resource_list_x head, *list; - int retval; unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_PREFETCH; @@ -874,7 +873,6 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge) again: pci_bus_size_bridges(parent); __pci_bridge_assign_resources(bridge, &head); - retval = pci_reenable_device(bridge); pci_set_master(bridge); pci_enable_bridges(parent); -- 1.7.1.rc1.21.gf3bd6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/