summaryrefslogtreecommitdiffstats
path: root/sound/usb/card.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-23 09:53:36 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-23 15:16:04 +0100
commit6aa719d15a1903eb3fd0e052ae53f3b024ad4d05 (patch)
tree026ff7427535388baf0850e848991c535c3bb0a1 /sound/usb/card.c
parentALSA: usb-audio: Refactoring endpoint URB deactivation (diff)
downloadlinux-6aa719d15a1903eb3fd0e052ae53f3b024ad4d05.tar.xz
linux-6aa719d15a1903eb3fd0e052ae53f3b024ad4d05.zip
ALSA: usb-audio: Drop unneeded snd_usb_substream fields
Some fields like interface and alt_idx in snd_usb_substream are mostly useless now as they can be referred via either cur_audiofmt or data_endpoint assigned to the substream. Drop those, and also assure the concurrency about the access of cur_audiofmt field. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-31-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/card.c')
-rw-r--r--sound/usb/card.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c
index 58958afcec93..7940b3bff5bc 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -124,7 +124,6 @@ static void snd_usb_stream_disconnect(struct snd_usb_stream *as)
subs = &as->substream[idx];
if (!subs->num_formats)
continue;
- subs->interface = -1;
subs->data_endpoint = NULL;
subs->sync_endpoint = NULL;
}