Re: [PATCH] ide/ide-scan-pci.c: Use for_each_pci_dev().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping?

On Sun, May 1, 2011 at 7:10 PM, Thiago Farina <tfransosi@xxxxxxxxx> wrote:
> Use for_each_pci_dev() to simplify the code.
>
> Signed-off-by: Thiago Farina <tfransosi@xxxxxxxxx>
> ---
> Â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-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux