aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-03 02:04:15 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-21 17:44:28 -0400
commit2e4e7a97edcd58ce6e5be7cbb65fc4263f65e0bf (patch)
treef3414b4205bc8a632f413a120e150c0bd28cea8b /drivers/net/irda
parent2037d5aa2551267184284188efdec4742f7218fa (diff)
drivers/net/irda: use for_each_pci_dev()
Use for_each_pci_dev() to simplify the code. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/smsc-ircc2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c
index d67e48418e55..850ca1c5ee19 100644
--- a/drivers/net/irda/smsc-ircc2.c
+++ b/drivers/net/irda/smsc-ircc2.c
@@ -2848,9 +2848,7 @@ static int __init smsc_ircc_preconfigure_subsystems(unsigned short ircc_cfg,
2848 unsigned short ss_device = 0x0000; 2848 unsigned short ss_device = 0x0000;
2849 int ret = 0; 2849 int ret = 0;
2850 2850
2851 dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev); 2851 for_each_pci_dev(dev) {
2852
2853 while (dev != NULL) {
2854 struct smsc_ircc_subsystem_configuration *conf; 2852 struct smsc_ircc_subsystem_configuration *conf;
2855 2853
2856 /* 2854 /*
@@ -2899,7 +2897,6 @@ static int __init smsc_ircc_preconfigure_subsystems(unsigned short ircc_cfg,
2899 ret = -ENODEV; 2897 ret = -ENODEV;
2900 } 2898 }
2901 } 2899 }
2902 dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev);
2903 } 2900 }
2904 2901
2905 return ret; 2902 return ret;