Skip to content

Commit 9f2f0f7

Browse files
atsushi-nemototiwai
authored andcommitted
[ALSA] at73c213: remove redundant private_free routine
snd_pcm_lib_preallocate_free_for_all() is called from snd_pcm_free() just after calling the private_free routine. So there should be no need to call it in driver's private_free routine. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 9166257 commit 9f2f0f7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎sound/spi/at73c213.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,6 @@ static struct snd_pcm_ops at73c213_playback_ops = {
325325
.pointer = snd_at73c213_pcm_pointer,
326326
};
327327

328-
static void snd_at73c213_pcm_free(struct snd_pcm *pcm)
329-
{
330-
struct snd_at73c213 *chip = snd_pcm_chip(pcm);
331-
if (chip->pcm) {
332-
snd_pcm_lib_preallocate_free_for_all(chip->pcm);
333-
chip->pcm = NULL;
334-
}
335-
}
336-
337328
static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device)
338329
{
339330
struct snd_pcm *pcm;
@@ -345,7 +336,6 @@ static int __devinit snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device)
345336
goto out;
346337

347338
pcm->private_data = chip;
348-
pcm->private_free = snd_at73c213_pcm_free;
349339
pcm->info_flags = SNDRV_PCM_INFO_BLOCK_TRANSFER;
350340
strcpy(pcm->name, "at73c213");
351341
chip->pcm = pcm;

0 commit comments

Comments
 (0)