projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d642625
)
[ALSA] emu10k1: There's no need to cast vmalloc() return value in snd_emu10k1_create()
author
Jesper Juhl
<
[email protected]
>
Tue, 28 Aug 2007 13:21:33 +0000
(15:21 +0200)
committer
Jaroslav Kysela
<
[email protected]
>
Tue, 16 Oct 2007 13:59:31 +0000
(15:59 +0200)
vmalloc() returns void *. no need to cast.
Signed-off-by: Jesper Juhl <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Jaroslav Kysela <
[email protected]
>
sound/pci/emu10k1/emu10k1_main.c
patch
|
blob
|
history
diff --git
a/sound/pci/emu10k1/emu10k1_main.c
b/sound/pci/emu10k1/emu10k1_main.c
index f55395bc911ee87712e3ced41ce627b39587940e..b112b295e9c6fce747311953904fc58ec3252098 100644
(file)
--- 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,
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;