aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-28 09:21:33 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:59:31 -0400
commit36726d9df7746efc2f71bb63f39f8ac7f7951a26 (patch)
tree6825f0bbaf2283bb7c1cd3ac42b3f365536cc7f9
parentd6426257d2c960399ff675b7807cde54b769e543 (diff)
[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: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index f55395bc911e..b112b295e9c6 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -1755,8 +1755,9 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
1755 goto error; 1755 goto error;
1756 } 1756 }
1757 1757
1758 emu->page_ptr_table = (void **)vmalloc(emu->max_cache_pages * sizeof(void*)); 1758 emu->page_ptr_table = vmalloc(emu->max_cache_pages * sizeof(void *));
1759 emu->page_addr_table = (unsigned long*)vmalloc(emu->max_cache_pages * sizeof(unsigned long)); 1759 emu->page_addr_table = vmalloc(emu->max_cache_pages *
1760 sizeof(unsigned long));
1760 if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) { 1761 if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) {
1761 err = -ENOMEM; 1762 err = -ENOMEM;
1762 goto error; 1763 goto error;