git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] janitor: tulip/de4x5: list_for_each
[pandora-kernel.git]
/
drivers
/
net
/
tulip
/
de4x5.c
diff --git
a/drivers/net/tulip/de4x5.c
b/drivers/net/tulip/de4x5.c
index
93800c1
..
ee48bfd
100644
(file)
--- a/
drivers/net/tulip/de4x5.c
+++ b/
drivers/net/tulip/de4x5.c
@@
-2144,9
+2144,9
@@
srom_search(struct net_device *dev, struct pci_dev *pdev)
u_long iobase = 0; /* Clear upper 32 bits in Alphas */
int i, j, cfrv;
struct de4x5_private *lp = netdev_priv(dev);
u_long iobase = 0; /* Clear upper 32 bits in Alphas */
int i, j, cfrv;
struct de4x5_private *lp = netdev_priv(dev);
- struct list_head *walk
= &pdev->bus_list
;
+ struct list_head *walk;
-
for (walk = walk->next; walk != &pdev->bus_list; walk = walk->nex
t) {
+
list_for_each(walk, &pdev->bus_lis
t) {
struct pci_dev *this_dev = pci_dev_b(walk);
/* Skip the pci_bus list entry */
struct pci_dev *this_dev = pci_dev_b(walk);
/* Skip the pci_bus list entry */