
From: Domen Puncer <domen@coderock.org>

gus_wave.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/sound/oss/gus_wave.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN sound/oss/gus_wave.c~gus_wavec-vfree-checking-cleanups sound/oss/gus_wave.c
--- 25/sound/oss/gus_wave.c~gus_wavec-vfree-checking-cleanups	Sun Mar  6 16:36:21 2005
+++ 25-akpm/sound/oss/gus_wave.c	Sun Mar  6 16:36:21 2005
@@ -3126,8 +3126,7 @@ void __exit gus_wave_unload(struct addre
 	if (hw_config->slots[5] != -1)
 		sound_unload_mixerdev(hw_config->slots[5]);
 	
-	if(samples)
-		vfree(samples);
+	vfree(samples);
 	samples=NULL;
 }
 /* called in interrupt context */
_
