Commit 36726d9d authored by Jesper Juhl's avatar Jesper Juhl Committed by Jaroslav Kysela

[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()

vmalloc() returns void *. no need to cast.
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent d6426257
...@@ -1755,8 +1755,9 @@ int __devinit snd_emu10k1_create(struct snd_card *card, ...@@ -1755,8 +1755,9 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
goto error; goto error;
} }
emu->page_ptr_table = (void **)vmalloc(emu->max_cache_pages * sizeof(void*)); emu->page_ptr_table = vmalloc(emu->max_cache_pages * sizeof(void *));
emu->page_addr_table = (unsigned long*)vmalloc(emu->max_cache_pages * sizeof(unsigned long)); emu->page_addr_table = vmalloc(emu->max_cache_pages *
sizeof(unsigned long));
if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) { if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) {
err = -ENOMEM; err = -ENOMEM;
goto error; goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment