Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb56acf8 authored by Jesper Juhl's avatar Jesper Juhl Committed by Alasdair G Kergon
Browse files

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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 9e4e5f87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;