projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2037d5a
)
drivers/net/irda: use for_each_pci_dev()
author
Kulikov Vasiliy
<segooon@gmail.com>
Sat, 3 Jul 2010 06:04:15 +0000
(06:04 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Jul 2010 21:44:28 +0000
(14:44 -0700)
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>
drivers/net/irda/smsc-ircc2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/irda/smsc-ircc2.c
b/drivers/net/irda/smsc-ircc2.c
index d67e48418e55c3a5fa085231c7fe462e491703d7..850ca1c5ee19cc024cb41aff9164b459ab999e46 100644
(file)
--- 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,
unsigned short ss_device = 0x0000;
int ret = 0;
- dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev);
-
- while (dev != NULL) {
+ for_each_pci_dev(dev) {
struct smsc_ircc_subsystem_configuration *conf;
/*
@@
-2899,7
+2897,6
@@
static int __init smsc_ircc_preconfigure_subsystems(unsigned short ircc_cfg,
ret = -ENODEV;
}
}
- dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev);
}
return ret;