Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752883Ab1EAWKe (ORCPT ); Sun, 1 May 2011 18:10:34 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:48391 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310Ab1EAWKc (ORCPT ); Sun, 1 May 2011 18:10:32 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=IJL16dhsKegJORt8jlLhT3vMytg+j+oDL2tMu1M0rxLRfdkabNZ4EhWu0+xTaqw1Z3 DErHHlBIY6uP7hvts/SVwd98o3xnow6R5rKaKsZ6L0Hl12FZsb5QicHLdTQKGv8oLMsw TQ2r4Sy1VnKwprOBzu9MqMYA42ovmNOOzf5MU= From: Thiago Farina To: linux-kernel@vger.kernel.org, "David S. Miller" Cc: linux-ide@vger.kernel.org Subject: [PATCH] ide/ide-scan-pci.c: Use for_each_pci_dev(). Date: Sun, 1 May 2011 19:10:25 -0300 Message-Id: <1304287825-8023-1-git-send-email-tfransosi@gmail.com> X-Mailer: git-send-email 1.7.5.rc2.5.g60e19 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 28 Use for_each_pci_dev() to simplify the code. Signed-off-by: Thiago Farina --- drivers/ide/ide-scan-pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c index 0e79eff..c3da53e 100644 --- a/drivers/ide/ide-scan-pci.c +++ b/drivers/ide/ide-scan-pci.c @@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void) struct list_head *l, *n; pre_init = 0; - while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev))) + for_each_pci_dev(dev) ide_scan_pcidev(dev); /* -- 1.7.5.rc2.5.g60e19 -- 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/