cosmetical changes .. hope you like it :)
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
tested, please apply
some more patches to come for the other dirs
a++ maks
net/ppp_generic.c | 2 +-
pci/setup-bus.c | 5 +++--
pcmcia/rsrc_mgr.c | 4 ++--
usb/class/audio.c | 12 ++++++------
usb/class/usb-midi.c | 6 +++---
usb/core/devices.c | 2 +-
6 files changed, 16 insertions(+), 15 deletions(-)
--- linux-2.6.0-test4/drivers/pci/setup-bus.c Sat Aug 23 02:01:44 2003
+++ linux-2.6.0-maks4/drivers/pci/setup-bus.c Wed Sep 3 08:21:03 2003
@@ -527,10 +527,11 @@
/* Depth first, calculate sizes and alignments of all
subordinate buses. */
- for(ln=pci_root_buses.next; ln != &pci_root_buses; ln=ln->next)
+ list_for_each(ln, &pci_root_buses) {
pci_bus_size_bridges(pci_bus_b(ln));
+ }
/* Depth last, allocate resources and update the hardware. */
- for(ln=pci_root_buses.next; ln != &pci_root_buses; ln=ln->next) {
+ list_for_each(ln, &pci_root_buses) {
pci_bus_assign_resources(pci_bus_b(ln));
pci_enable_bridges(pci_bus_b(ln));
}
--- linux-2.6.0-test4/drivers/net/ppp_generic.c Sat Aug 23 02:00:39 2003
+++ linux-2.6.0-maks4/drivers/net/ppp_generic.c Wed Sep 3 08:21:59 2003
@@ -1671,7 +1671,7 @@
* The list of channels can't change because we have the receive
* side of the ppp unit locked.
*/
- for (l = ppp->channels.next; l != &ppp->channels; l = l->next) {
+ list_for_each(l, &ppp->channels) {
struct channel *ch = list_entry(l, struct channel, clist);
if (seq_before(ch->lastseq, seq))
seq = ch->lastseq;
--- linux-2.6.0-test4/drivers/usb/core/devices.c Sat Aug 23 02:01:40 2003
+++ linux-2.6.0-maks4/drivers/usb/core/devices.c Wed Sep 3 08:26:02 2003
@@ -570,7 +570,7 @@
/* enumerate busses */
down (&usb_bus_list_lock);
- for (buslist = usb_bus_list.next; buslist != &usb_bus_list; buslist =
buslist->next) {
+ list_for_each(buslist, &usb_bus_list) {
/* print devices for this bus */
bus = list_entry(buslist, struct usb_bus, bus_list);
/* recurse through all children of the root hub */
--- linux-2.6.0-test4/drivers/usb/class/usb-midi.c Sat Aug 23 01:51:03 2003
+++ linux-2.6.0-maks4/drivers/usb/class/usb-midi.c Wed Sep 3 08:28:36 2003
@@ -826,9 +826,9 @@
for(;;) {
down(&open_sem);
- for (devs = mididevs.next; devs != &mididevs; devs = devs->next) {
+ list_for_each(devs, &mididevs) {
s = list_entry(devs, struct usb_midi_state, mididev);
- for (mdevs = s->midiDevList.next; mdevs != &s->midiDevList;
mdevs = mdevs->next) {
+ list_for_each(mdevs, &s->midiDevList) {
m = list_entry(mdevs, struct usb_mididev, list);
if ( !((m->dev_midi ^ minor) & ~0xf) )
goto device_found;
@@ -2055,7 +2055,7 @@
s->usbdev = NULL;
usb_set_intfdata (intf, NULL);
- for ( list = s->midiDevList.next; list != &s->midiDevList; list = list->next )
{
+ list_for_each(list, &s->midiDevList) {
m = list_entry(list, struct usb_mididev, list);
wake_up(&(m->min.ep->wait));
wake_up(&(m->mout.ep->wait));
--- linux-2.6.0-test4/drivers/usb/class/audio.c Sat Aug 23 02:01:48 2003
+++ linux-2.6.0-maks4/drivers/usb/class/audio.c Wed Sep 3 08:32:15 2003
@@ -1961,9 +1961,9 @@
struct usb_audio_state *s;
down(&open_sem);
- for (devs = audiodevs.next; devs != &audiodevs; devs = devs->next) {
+ list_for_each(devs, &audiodevs) {
s = list_entry(devs, struct usb_audio_state, audiodev);
- for (mdevs = s->mixerlist.next; mdevs != &s->mixerlist; mdevs =
mdevs->next) {
+ list_for_each(mdevs, &s->mixerlist) {
ms = list_entry(mdevs, struct usb_mixerdev, list);
if (ms->dev_mixer == minor)
goto mixer_found;
@@ -2641,9 +2641,9 @@
for (;;) {
down(&open_sem);
- for (devs = audiodevs.next; devs != &audiodevs; devs = devs->next) {
+ list_for_each(devs, &audiodevs) {
s = list_entry(devs, struct usb_audio_state, audiodev);
- for (adevs = s->audiolist.next; adevs != &s->audiolist; adevs
= adevs->next) {
+ list_for_each(adevs, &s->audiolist) {
as = list_entry(adevs, struct usb_audiodev, list);
if (!((as->dev_audio ^ minor) & ~0xf))
goto device_found;
@@ -3848,7 +3848,7 @@
usb_set_intfdata (intf, NULL);
/* deregister all audio and mixer devices, so no new processes can open this
device */
- for(list = s->audiolist.next; list != &s->audiolist; list = list->next) {
+ list_for_each(list, &s->audiolist) {
as = list_entry(list, struct usb_audiodev, list);
usbin_disc(as);
usbout_disc(as);
@@ -3860,7 +3860,7 @@
}
as->dev_audio = -1;
}
- for(list = s->mixerlist.next; list != &s->mixerlist; list = list->next) {
+ list_for_each(list, &s->mixerlist) {
ms = list_entry(list, struct usb_mixerdev, list);
if (ms->dev_mixer >= 0) {
unregister_sound_mixer(ms->dev_mixer);
--- linux-2.6.0-test4/drivers/pcmcia/rsrc_mgr.c Sat Aug 23 01:57:09 2003
+++ linux-2.6.0-maks4/drivers/pcmcia/rsrc_mgr.c Wed Sep 3 08:33:50 2003
@@ -510,7 +510,7 @@
}
if (lo++)
goto out;
- for (m = mem_db.next; m != &mem_db; m = n) {
+ list_for_each(m, &mem_db) {
n = m->next;
/* Only probe < 1 MB */
if (m->base >= 0x100000) continue;
@@ -542,7 +542,7 @@
if (probe_mem && done++ == 0) {
down(&rsrc_sem);
- for (m = mem_db.next; m != &mem_db; m = n) {
+ list_for_each(m, &mem_db) {
n = m->next;
if (do_mem_probe(m->base, m->num, s))
break;
pgp00000.pgp
Description: PGP signature
