Commit de89750c authored by Takashi Iwai's avatar Takashi Iwai

ALSA: pcm: Drop unused snd_pcm_substream.file field

It's assigned but nowhere used.  Let's remove it.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d8002539
......@@ -470,7 +470,6 @@ struct snd_pcm_substream {
struct snd_pcm_group self_group; /* fake group for non linked substream (with substream lock inside) */
struct snd_pcm_group *group; /* pointer to current group */
/* -- assigned files -- */
void *file;
int ref_count;
atomic_t mmap_count;
unsigned int f_flags;
......
......@@ -2427,7 +2427,6 @@ static int snd_pcm_oss_open_file(struct file *file,
}
pcm_oss_file->streams[idx] = substream;
substream->file = pcm_oss_file;
snd_pcm_oss_init_substream(substream, &setup[idx], minor);
}
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment