mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ALSA: sgio2audio.c: clean up checking
vfree() does it's own 'NULL' check,so no need for check before calling it. Signed-off-by: Figo.zhang <figo1802@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
13be1bf146
commit
ad0b0822f9
1 changed files with 1 additions and 2 deletions
|
@ -619,8 +619,7 @@ static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||||
/* hw_free callback */
|
/* hw_free callback */
|
||||||
static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream)
|
static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream)
|
||||||
{
|
{
|
||||||
if (substream->runtime->dma_area)
|
vfree(substream->runtime->dma_area);
|
||||||
vfree(substream->runtime->dma_area);
|
|
||||||
substream->runtime->dma_area = NULL;
|
substream->runtime->dma_area = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue