summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-10-19 23:38:54 +0200
committerAlasdair G Kergon <agk@redhat.com>2007-10-20 03:01:10 +0200
commitbb56acf840600421e68f49bb037d1c659fcb37f8 (patch)
treef95ff0498bff166b86b9d3684223504d3976c7ca /drivers/md
parentdm: tidy bio_io_error usage (diff)
downloadlinux-bb56acf840600421e68f49bb037d1c659fcb37f8.tar.xz
linux-bb56acf840600421e68f49bb037d1c659fcb37f8.zip
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 <jesper.juhl@gmail.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index ba5d8f7cc5f2..6af95f9b7b52 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;