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:
75c7e21
)
uml: remove unneeded void * cast
author
Jesper Juhl
<
[email protected]
>
Tue, 16 Oct 2007 08:27:19 +0000
(
01:27
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 16 Oct 2007 16:43:07 +0000
(09:43 -0700)
vmalloc() returns a void pointer, so casting to (void *) is pretty pointless.
Signed-off-by: Jesper Juhl <
[email protected]
>
Signed-off-by: Jeff Dike <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/drivers/ubd_kern.c
patch
|
blob
|
history
diff --git
a/arch/um/drivers/ubd_kern.c
b/arch/um/drivers/ubd_kern.c
index 0eabe73c964dc04732baa35cfaec864e34b41599..25b248a025074154985fbb0f6a041bbaaf17aa96 100644
(file)
--- a/
arch/um/drivers/ubd_kern.c
+++ b/
arch/um/drivers/ubd_kern.c
@@
-615,7
+615,7
@@
static int ubd_open_dev(struct ubd *ubd_dev)
blk_queue_max_sectors(ubd_dev->queue, 8 * sizeof(long));
err = -ENOMEM;
- ubd_dev->cow.bitmap =
(void *)
vmalloc(ubd_dev->cow.bitmap_len);
+ ubd_dev->cow.bitmap = vmalloc(ubd_dev->cow.bitmap_len);
if(ubd_dev->cow.bitmap == NULL){
printk(KERN_ERR "Failed to vmalloc COW bitmap\n");
goto error;