]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/oss/sb_midi.c
[PATCH] getting rid of all casts of k[cmz]alloc() calls
[mv-sheeva.git] / sound / oss / sb_midi.c
index 2e3bc045cabaf67d35a0d00d981dbba1e3df5866..8b796704e1120a15caaed0c96edffa67a34e8006 100644 (file)
@@ -173,7 +173,7 @@ void sb_dsp_midi_init(sb_devc * devc, struct module *owner)
                return;
        }
        std_midi_synth.midi_dev = devc->my_mididev = dev;
-       midi_devs[dev] = (struct midi_operations *)kmalloc(sizeof(struct midi_operations), GFP_KERNEL);
+       midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL);
        if (midi_devs[dev] == NULL)
        {
                printk(KERN_WARNING "Sound Blaster:  failed to allocate MIDI memory.\n");
@@ -189,7 +189,7 @@ void sb_dsp_midi_init(sb_devc * devc, struct module *owner)
        midi_devs[dev]->devc = devc;
 
 
-       midi_devs[dev]->converter = (struct synth_operations *)kmalloc(sizeof(struct synth_operations), GFP_KERNEL);
+       midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL);
        if (midi_devs[dev]->converter == NULL)
        {
                  printk(KERN_WARNING "Sound Blaster:  failed to allocate MIDI memory.\n");