From patchwork Wed Jul 22 01:13:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenji Kaneshige X-Patchwork-Id: 36663 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6M1DEMr024851 for ; Wed, 22 Jul 2009 01:13:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbZGVBN4 (ORCPT ); Tue, 21 Jul 2009 21:13:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751993AbZGVBN4 (ORCPT ); Tue, 21 Jul 2009 21:13:56 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:38013 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbZGVBNz (ORCPT ); Tue, 21 Jul 2009 21:13:55 -0400 Received: from m1.gw.fujitsu.co.jp ([10.0.50.71]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n6M1Dsu2007843 for (envelope-from kaneshige.kenji@jp.fujitsu.com); Wed, 22 Jul 2009 10:13:55 +0900 Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 7BE4745DE56 for ; Wed, 22 Jul 2009 10:13:53 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 364AD45DE52 for ; Wed, 22 Jul 2009 10:13:53 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id F0895E08007 for ; Wed, 22 Jul 2009 10:13:52 +0900 (JST) Received: from m106.s.css.fujitsu.com (m106.s.css.fujitsu.com [10.249.87.106]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 726F4E08001 for ; Wed, 22 Jul 2009 10:13:52 +0900 (JST) Received: from m106.css.fujitsu.com (m106 [127.0.0.1]) by m106.s.css.fujitsu.com (Postfix) with ESMTP id 46C7C5B8827; Wed, 22 Jul 2009 10:13:52 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.137]) by m106.s.css.fujitsu.com (Postfix) with ESMTP id B07765B8825; Wed, 22 Jul 2009 10:13:51 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Received: from KANE-LIFEBOOK[10.124.100.137] by KANE-LIFEBOOK (FujitsuOutboundMailChecker v1.3.1/9992[10.124.100.137]); Wed, 22 Jul 2009 10:13:40 +0900 (JST) Message-ID: <4A6667C0.7010909@jp.fujitsu.com> Date: Wed, 22 Jul 2009 10:13:36 +0900 From: Kenji Kaneshige User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Jesse Barnes , "Li, Shaohua" , "linux-pci@vger.kernel.org" Subject: [PATCH 2/7] PCI ASPM: remove redundant list check References: <4A66673A.2070409@jp.fujitsu.com> In-Reply-To: <4A66673A.2070409@jp.fujitsu.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Remove the following check in __pcie_aspm_config_link() because it nerver be true. Signed-off-by: Kenji Kaneshige --- drivers/pci/pcie/aspm.c | 3 --- 1 file changed, 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: 20090721/drivers/pci/pcie/aspm.c =================================================================== --- 20090721.orig/drivers/pci/pcie/aspm.c +++ 20090721/drivers/pci/pcie/aspm.c @@ -458,9 +458,6 @@ static void __pcie_aspm_config_link(stru struct pci_dev *child, *parent = link->pdev; struct pci_bus *linkbus = parent->subordinate; - /* If no child, disable the link */ - if (list_empty(&linkbus->devices)) - state = 0; /* * If the downstream component has pci bridge function, don't * do ASPM now.