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/endpoint.c | |
parent | 7c51746517e46806c59da6d780e7a14e8ae2bf78 (diff) | |
download | blackbird-obmc-linux-88766f04c4142c0a388a1de354616c3deafba513.tar.gz blackbird-obmc-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/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 21049b882ee6..b1f687f57ba5 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c @@ -415,14 +415,12 @@ struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip, struct usb_host_interface *alts, int ep_num, int direction, int type) { - struct list_head *p; struct snd_usb_endpoint *ep; int is_playback = direction == SNDRV_PCM_STREAM_PLAYBACK; mutex_lock(&chip->mutex); - list_for_each(p, &chip->ep_list) { - ep = list_entry(p, struct snd_usb_endpoint, list); + list_for_each_entry(ep, &chip->ep_list, list) { if (ep->ep_num == ep_num && ep->iface == alts->desc.bInterfaceNumber && ep->alt_idx == alts->desc.bAlternateSetting) { |