diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2013-04-03 23:18:49 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-04 08:30:06 +0200 |
commit | 88766f04c4142c0a388a1de354616c3deafba513 (patch) | |
tree | e99293557513f294c5a703f449ca871b17be27bc /sound/usb/midi.c | |
parent | ALSA: usb-audio: Clean up the code in set_sample_rate_v2() (diff) | |
download | linux-88766f04c4142c0a388a1de354616c3deafba513.tar.xz linux-88766f04c4142c0a388a1de354616c3deafba513.zip |
ALSA: usb-audio: convert list_for_each to entry variant
Change occurances of list_for_each into list_for_each_entry where
applicable.
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/midi.c')
-rw-r--r-- | sound/usb/midi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index 34b9bb7fe87c..1cf943d86bcd 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c @@ -1465,10 +1465,9 @@ static void snd_usbmidi_rawmidi_free(struct snd_rawmidi *rmidi) static struct snd_rawmidi_substream *snd_usbmidi_find_substream(struct snd_usb_midi* umidi, int stream, int number) { - struct list_head* list; + struct snd_rawmidi_substream *substream; - list_for_each(list, &umidi->rmidi->streams[stream].substreams) { - struct snd_rawmidi_substream *substream = list_entry(list, struct snd_rawmidi_substream, list); + list_for_each_entry(substream, &umidi->rmidi->streams[stream].substreams, list) { if (substream->number == number) return substream; } |