]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - sound/oss/v_midi.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[net-next-2.6.git] / sound / oss / v_midi.c
index a7ef04fab075b1a7bd7dd7e377d26f1555380f8e..f0b4151d9b17c4abfe0dfff99bbce86759aea939 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * sound/v_midi.c
+ * sound/oss/v_midi.c
  *
  * The low level driver for the Sound Blaster DS chips.
  *
@@ -21,6 +21,7 @@
 
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 #include <linux/spinlock.h>
 #include "sound_config.h"
 
@@ -183,7 +184,7 @@ static void __init attach_v_midi (struct address_info *hw_config)
                return;
        }
        
-       m=(struct vmidi_memory *)kmalloc(sizeof(struct vmidi_memory), GFP_KERNEL);
+       m = kmalloc(sizeof(struct vmidi_memory), GFP_KERNEL);
        if (m == NULL)
        {
                printk(KERN_WARNING "Loopback MIDI: Failed to allocate memory\n");