From patchwork Wed Jan 29 18:18:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 3553811 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5C6A99F382 for ; Wed, 29 Jan 2014 18:23:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93C18201BB for ; Wed, 29 Jan 2014 18:23:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C05DB201B4 for ; Wed, 29 Jan 2014 18:23:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752079AbaA2SXu (ORCPT ); Wed, 29 Jan 2014 13:23:50 -0500 Received: from mail-ie0-f179.google.com ([209.85.223.179]:33826 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064AbaA2SXs (ORCPT ); Wed, 29 Jan 2014 13:23:48 -0500 Received: by mail-ie0-f179.google.com with SMTP id ar20so2447679iec.10 for ; Wed, 29 Jan 2014 10:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=VR1dOHKUpjybbaSeGFhYHeUlIXgIzx1xVrwC7opq9Sk=; b=VEK00moN+5FBuWjqexfaXPcMoF4tRiUYM2kiTKNYHtv95R0GQy0yGfPgutTN08XSsR XIdb8rXGZzWb+Z3XRK945R+yfcrtlYIoShMo8qESSN5ibU0Wk1kP53psc2Ccb1RPjYta Ubxo9kYv3grF6rCZt0PLThAvgkbGTq7OWV5UvieuOgXIKsjvdeT3pHl3+y3gFVy4MJW9 lPZWp4jKWeLJJNjrjaqxmVqDFbQwRAtO4RHXA/rLRwdIiDkA70I4Y6i9zz5vvpFdiAMW ER/LISGiSQ/Z9hRNfp07n+YOpN1uI+KMvyKypSV4DpFbua4tWg9VGL9hg/lnFo2tZQcY Pc8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=VR1dOHKUpjybbaSeGFhYHeUlIXgIzx1xVrwC7opq9Sk=; b=N2gkcz8aVvR4bUFi+IqFxIi3jxT6CQOPbGypJrSa8QUUGI3OswS0id9OhVwF8cPO22 osmEn4X4sNqHHNt0C//C7ID6/dOqR29hwjyxjZSbPxrXvZotiyiUtPuK7y+xp5T9bPlQ rRYvgnWafw/ohxAqjOwzdN6fCGMDesBm16A+UocsaINZ+q5B76sOZhgVUHQgCP4D1rr1 UazkmwHTNrK9PsSfiZbjpQXZ/5QureS3RP3GknlNli7OwYAmuL1tYoSkbEcWt+QkjwBf Dmz/O3Egs5RnS/keOSy8RpoE/pZSn3w3+PIRIx8A8nQgrxBeSzJSHqxHmhfllyAOu9m/ Pe3g== X-Gm-Message-State: ALoCoQl8nejXr6+IoBhtmx+Y7niN/iTS0EcuNDFM/+6McAhRrsBNqq9GLNr5tbEvvmLXwTHaNrA5nev9w74F4xJGsrfcrTaMBeycQnop/mrjnvRTpaMRXJwweXfVzLP0h8h7IW2RogPYJ60u8ehs7lojTY9xmTRNo/YMR3TiSZDaEX7V90uwgtdiwJA+6wX/BtCcFoWjhp3RjyqSnv9zhDFAisy7fk0uew== X-Received: by 10.42.88.79 with SMTP id b15mr2463674icm.65.1391019516240; Wed, 29 Jan 2014 10:18:36 -0800 (PST) Received: from localhost ([172.29.123.160]) by mx.google.com with ESMTPSA id y9sm3558284igl.0.2014.01.29.10.18.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jan 2014 10:18:35 -0800 (PST) Subject: [PATCH 09/17] x86/PCI: Remove unnecessary list_empty(&pci_root_infos) check To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-acpi@vger.kernel.org, x86@kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 29 Jan 2014 11:18:33 -0700 Message-ID: <20140129181833.15476.93146.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20140129174106.15476.7075.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <20140129174106.15476.7075.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP list_for_each_entry() handles empty lists, so there's no need to check whether the list is empty first. Signed-off-by: Bjorn Helgaas --- arch/x86/pci/bus_numa.c | 3 --- 1 file changed, 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/pci/bus_numa.c b/arch/x86/pci/bus_numa.c index 2e36a4469549..f3a2cfc14125 100644 --- a/arch/x86/pci/bus_numa.c +++ b/arch/x86/pci/bus_numa.c @@ -10,9 +10,6 @@ static struct pci_root_info *x86_find_pci_root_info(int bus) { struct pci_root_info *info; - if (list_empty(&pci_root_infos)) - return NULL; - list_for_each_entry(info, &pci_root_infos, list) if (info->busn.start == bus) return info;