From patchwork Wed Aug 19 01:58:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenji Kaneshige X-Patchwork-Id: 42476 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 n7J1uolJ022565 for ; Wed, 19 Aug 2009 01:58:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbZHSB60 (ORCPT ); Tue, 18 Aug 2009 21:58:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751326AbZHSB60 (ORCPT ); Tue, 18 Aug 2009 21:58:26 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:52097 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbZHSB6Z (ORCPT ); Tue, 18 Aug 2009 21:58:25 -0400 Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n7J1wQV9000434 for (envelope-from kaneshige.kenji@jp.fujitsu.com); Wed, 19 Aug 2009 10:58:26 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 0515F45DE55 for ; Wed, 19 Aug 2009 10:58:26 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id D5D8245DE51 for ; Wed, 19 Aug 2009 10:58:25 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 28509E38001 for ; Wed, 19 Aug 2009 10:58:25 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.249.87.107]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id CC1C11DB803A for ; Wed, 19 Aug 2009 10:58:21 +0900 (JST) Received: from m107.css.fujitsu.com (m107 [127.0.0.1]) by m107.s.css.fujitsu.com (Postfix) with ESMTP id 8A22C67000B; Wed, 19 Aug 2009 10:58:21 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.137]) by m107.s.css.fujitsu.com (Postfix) with ESMTP id E44BC670009; Wed, 19 Aug 2009 10:58:20 +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, 19 Aug 2009 10:58:14 +0900 (JST) Message-ID: <4A8B5C31.7020901@jp.fujitsu.com> Date: Wed, 19 Aug 2009 10:58:09 +0900 From: Kenji Kaneshige User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: jbarnes@virtuousgeek.org, shaohua.li@intel.com, linux-pci@vger.kernel.org Subject: [PATCH 2/7] PCI ASPM: remove redundant list check References: <4A8B5BC8.1070907@jp.fujitsu.com> In-Reply-To: <4A8B5BC8.1070907@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: 20090818/drivers/pci/pcie/aspm.c =================================================================== --- 20090818.orig/drivers/pci/pcie/aspm.c +++ 20090818/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.