diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-01-23 12:47:34 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-24 14:40:25 +0100 |
commit | de89750c56f4bf2f04492c6ce298911381a7597a (patch) | |
tree | 5bb0b4ed731585aec488a7c9ab581bd8ab4a759f /sound/core/pcm_native.c | |
parent | d8002539ec7b8bc793a212b79db4a796ce9bce9c (diff) | |
download | linux-de89750c56f4bf2f04492c6ce298911381a7597a.tar.bz2 |
ALSA: pcm: Drop unused snd_pcm_substream.file field
It's assigned but nowhere used. Let's remove it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_native.c')
-rw-r--r-- | sound/core/pcm_native.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 26afb6b0889a..63640d3af9db 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -2452,10 +2452,8 @@ static int snd_pcm_open_file(struct file *file, return -ENOMEM; } pcm_file->substream = substream; - if (substream->ref_count == 1) { - substream->file = pcm_file; + if (substream->ref_count == 1) substream->pcm_release = pcm_release_private; - } file->private_data = pcm_file; return 0; |