diff options
Diffstat (limited to 'sound/oss/sb_midi.c')
-rw-r--r-- | sound/oss/sb_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/sb_midi.c b/sound/oss/sb_midi.c index 2e3bc045caba..8b796704e112 100644 --- a/sound/oss/sb_midi.c +++ b/sound/oss/sb_midi.c | |||
@@ -173,7 +173,7 @@ void sb_dsp_midi_init(sb_devc * devc, struct module *owner) | |||
173 | return; | 173 | return; |
174 | } | 174 | } |
175 | std_midi_synth.midi_dev = devc->my_mididev = dev; | 175 | std_midi_synth.midi_dev = devc->my_mididev = dev; |
176 | midi_devs[dev] = (struct midi_operations *)kmalloc(sizeof(struct midi_operations), GFP_KERNEL); | 176 | midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); |
177 | if (midi_devs[dev] == NULL) | 177 | if (midi_devs[dev] == NULL) |
178 | { | 178 | { |
179 | printk(KERN_WARNING "Sound Blaster: failed to allocate MIDI memory.\n"); | 179 | 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) | |||
189 | midi_devs[dev]->devc = devc; | 189 | midi_devs[dev]->devc = devc; |
190 | 190 | ||
191 | 191 | ||
192 | midi_devs[dev]->converter = (struct synth_operations *)kmalloc(sizeof(struct synth_operations), GFP_KERNEL); | 192 | midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); |
193 | if (midi_devs[dev]->converter == NULL) | 193 | if (midi_devs[dev]->converter == NULL) |
194 | { | 194 | { |
195 | printk(KERN_WARNING "Sound Blaster: failed to allocate MIDI memory.\n"); | 195 | printk(KERN_WARNING "Sound Blaster: failed to allocate MIDI memory.\n"); |