mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
9e4e5f87eb
commit
bb56acf840
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue