summaryrefslogtreecommitdiffstats
path: root/sound/mips/sgio2audio.c
diff options
context:
space:
mode:
authorFigo.zhang <figo1802@gmail.com>2009-06-07 07:37:27 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-07 09:08:43 +0200
commitad0b0822f98ef547e2461ce463e4233bad7848a8 (patch)
tree077ebf5515b44f8c5bcd2a1c8571d2afe80d2a83 /sound/mips/sgio2audio.c
parentALSA: burgundy: timeout message is off by one. (diff)
downloadlinux-ad0b0822f98ef547e2461ce463e4233bad7848a8.tar.xz
linux-ad0b0822f98ef547e2461ce463e4233bad7848a8.zip
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>
Diffstat (limited to '')
-rw-r--r--sound/mips/sgio2audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c
index 66f3b48ceafc..e497525bc11b 100644
--- a/sound/mips/sgio2audio.c
+++ b/sound/mips/sgio2audio.c
@@ -619,8 +619,7 @@ static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream,
/* hw_free callback */
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;
return 0;
}