Commit da2486ba authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

uml: remove unneeded void * cast

vmalloc() returns a void pointer, so casting to (void *) is pretty pointless.
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 75c7e214
...@@ -615,7 +615,7 @@ static int ubd_open_dev(struct ubd *ubd_dev) ...@@ -615,7 +615,7 @@ static int ubd_open_dev(struct ubd *ubd_dev)
blk_queue_max_sectors(ubd_dev->queue, 8 * sizeof(long)); blk_queue_max_sectors(ubd_dev->queue, 8 * sizeof(long));
err = -ENOMEM; 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){ if(ubd_dev->cow.bitmap == NULL){
printk(KERN_ERR "Failed to vmalloc COW bitmap\n"); printk(KERN_ERR "Failed to vmalloc COW bitmap\n");
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