@@ -1527,13 +1527,11 @@ static int snd_pcm_drain(struct snd_pcm_substream *substream,
15271527static int snd_pcm_drop (struct snd_pcm_substream * substream )
15281528{
15291529 struct snd_pcm_runtime * runtime ;
1530- struct snd_card * card ;
15311530 int result = 0 ;
15321531
15331532 if (PCM_RUNTIME_CHECK (substream ))
15341533 return - ENXIO ;
15351534 runtime = substream -> runtime ;
1536- card = substream -> pcm -> card ;
15371535
15381536 if (runtime -> status -> state == SNDRV_PCM_STATE_OPEN ||
15391537 runtime -> status -> state == SNDRV_PCM_STATE_DISCONNECTED ||
@@ -2065,7 +2063,6 @@ static int snd_pcm_open_file(struct file *file,
20652063{
20662064 struct snd_pcm_file * pcm_file ;
20672065 struct snd_pcm_substream * substream ;
2068- struct snd_pcm_str * str ;
20692066 int err ;
20702067
20712068 if (rpcm_file )
@@ -2082,7 +2079,6 @@ static int snd_pcm_open_file(struct file *file,
20822079 }
20832080 pcm_file -> substream = substream ;
20842081 if (substream -> ref_count == 1 ) {
2085- str = substream -> pstr ;
20862082 substream -> file = pcm_file ;
20872083 substream -> pcm_release = pcm_release_private ;
20882084 }
@@ -3024,11 +3020,9 @@ static const struct vm_operations_struct snd_pcm_vm_ops_status =
30243020static int snd_pcm_mmap_status (struct snd_pcm_substream * substream , struct file * file ,
30253021 struct vm_area_struct * area )
30263022{
3027- struct snd_pcm_runtime * runtime ;
30283023 long size ;
30293024 if (!(area -> vm_flags & VM_READ ))
30303025 return - EINVAL ;
3031- runtime = substream -> runtime ;
30323026 size = area -> vm_end - area -> vm_start ;
30333027 if (size != PAGE_ALIGN (sizeof (struct snd_pcm_mmap_status )))
30343028 return - EINVAL ;
@@ -3063,11 +3057,9 @@ static const struct vm_operations_struct snd_pcm_vm_ops_control =
30633057static int snd_pcm_mmap_control (struct snd_pcm_substream * substream , struct file * file ,
30643058 struct vm_area_struct * area )
30653059{
3066- struct snd_pcm_runtime * runtime ;
30673060 long size ;
30683061 if (!(area -> vm_flags & VM_READ ))
30693062 return - EINVAL ;
3070- runtime = substream -> runtime ;
30713063 size = area -> vm_end - area -> vm_start ;
30723064 if (size != PAGE_ALIGN (sizeof (struct snd_pcm_mmap_control )))
30733065 return - EINVAL ;
0 commit comments