diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-07 01:37:27 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-07 03:08:43 -0400 |
commit | ad0b0822f98ef547e2461ce463e4233bad7848a8 (patch) | |
tree | 077ebf5515b44f8c5bcd2a1c8571d2afe80d2a83 /sound/mips | |
parent | 13be1bf1467e3186a4a9d1b1276cc4bd31e472ea (diff) |
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 'sound/mips')
-rw-r--r-- | sound/mips/sgio2audio.c | 3 |
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, | |||
619 | /* hw_free callback */ | 619 | /* hw_free callback */ |
620 | static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream) | 620 | static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream) |
621 | { | 621 | { |
622 | if (substream->runtime->dma_area) | 622 | vfree(substream->runtime->dma_area); |
623 | vfree(substream->runtime->dma_area); | ||
624 | substream->runtime->dma_area = NULL; | 623 | substream->runtime->dma_area = NULL; |
625 | return 0; | 624 | return 0; |
626 | } | 625 | } |