From: Figo.zhang Date: Sun, 7 Jun 2009 05:37:27 +0000 (+0800) Subject: ALSA: sgio2audio.c: clean up checking X-Git-Tag: v2.6.31-rc1~38^2~2^2~2 X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=commitdiff_plain;h=ad0b0822f98ef547e2461ce463e4233bad7848a8 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 66f3b48..e497525 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; }