From: Jesper Juhl Date: Fri, 19 Oct 2007 21:38:54 +0000 (+0100) Subject: dm io:ctl remove vmalloc void cast X-Git-Tag: v2.6.24-rc1~130^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bb56acf840600421e68f49bb037d1c659fcb37f8;p=linux-2.6-omap-h63xx.git dm io:ctl remove vmalloc void cast In drivers/md/dm-ioctl.c::copy_params() there's a call to vmalloc() where we currently cast the return value, but that's pretty pointless given that vmalloc() returns "void *". Signed-off-by: Jesper Juhl Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index ba5d8f7cc5f..6af95f9b7b5 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1358,7 +1358,7 @@ static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl **param) if (tmp.data_size < sizeof(tmp)) return -EINVAL; - dmi = (struct dm_ioctl *) vmalloc(tmp.data_size); + dmi = vmalloc(tmp.data_size); if (!dmi) return -ENOMEM;