upgrade to fedora-2.6.12-1.1398.FC4 + vserver 2.0.rc7
[linux-2.6.git] / sound / oss / gus_wave.c
index 2cc924d..942d518 100644 (file)
@@ -94,7 +94,7 @@ static int      recording_active;
 static int      only_read_access;
 static int      only_8_bits;
 
-int             iw_mode = 0;
+static int      iw_mode = 0;
 int             gus_wave_volume = 60;
 int             gus_pcm_volume = 80;
 int             have_gus_max = 0;
@@ -139,7 +139,7 @@ static int      pcm_current_block;
 static unsigned long pcm_current_buf;
 static int      pcm_current_count;
 static int      pcm_current_intrflag;
-spinlock_t gus_lock=SPIN_LOCK_UNLOCKED;
+DEFINE_SPINLOCK(gus_lock);
 
 extern int     *gus_osp;
 
@@ -3126,8 +3126,7 @@ void __exit gus_wave_unload(struct address_info *hw_config)
        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 */