vmalloc() returns void *. no need to cast.

Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]>
---
 sound/pci/emu10k1/emu10k1_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index 404ae1b..91d986b 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -1722,8 +1722,8 @@ int __devinit snd_emu10k1_create(struct snd_card *card,
                goto error;
        }
 
-       emu->page_ptr_table = (void **)vmalloc(emu->max_cache_pages * 
sizeof(void*));
-       emu->page_addr_table = (unsigned long*)vmalloc(emu->max_cache_pages * 
sizeof(unsigned long));
+       emu->page_ptr_table = vmalloc(emu->max_cache_pages * sizeof(void *));
+       emu->page_addr_table = vmalloc(emu->max_cache_pages * sizeof(unsigned 
long));
        if (emu->page_ptr_table == NULL || emu->page_addr_table == NULL) {
                err = -ENOMEM;
                goto error;
-- 
1.5.2.2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to