aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/seq_virmidi.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2006-10-05 10:02:22 -0400
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:00:10 -0500
commit9244b2c3079faac79b3b961116bd548c45087e2c (patch)
tree1a9e2ead054ed58efcad3fd43fb2aedeb6731baa /sound/core/seq/seq_virmidi.c
parentd595ee7e0162ae66faa8c4c7d8c2069b40d64fed (diff)
[ALSA] alsa core: convert to list_for_each_entry*
This patch converts most uses of list_for_each to list_for_each_entry all across alsa. In some place apparently an item can be on a list with different pointers so of course that isn't compatible with list_for_each, I therefore didn't touch those places. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/seq/seq_virmidi.c')
-rw-r--r--sound/core/seq/seq_virmidi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/seq/seq_virmidi.c b/sound/core/seq/seq_virmidi.c
index 0cfa06c6b81f..972f93405364 100644
--- a/sound/core/seq/seq_virmidi.c
+++ b/sound/core/seq/seq_virmidi.c
@@ -81,13 +81,11 @@ static int snd_virmidi_dev_receive_event(struct snd_virmidi_dev *rdev,
81 struct snd_seq_event *ev) 81 struct snd_seq_event *ev)
82{ 82{
83 struct snd_virmidi *vmidi; 83 struct snd_virmidi *vmidi;
84 struct list_head *list;
85 unsigned char msg[4]; 84 unsigned char msg[4];
86 int len; 85 int len;
87 86
88 read_lock(&rdev->filelist_lock); 87 read_lock(&rdev->filelist_lock);
89 list_for_each(list, &rdev->filelist) { 88 list_for_each_entry(vmidi, &rdev->filelist, list) {
90 vmidi = list_entry(list, struct snd_virmidi, list);
91 if (!vmidi->trigger) 89 if (!vmidi->trigger)
92 continue; 90 continue;
93 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { 91 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) {