kvm: remove long -> void *user -> long cast
Avi,
kvm_dev_ioctl casts the arg value to void __user *, just to recast it again to long. This seems unnecessary.
According to objdump the binary code on x86 is unchanged by this patch.
Signed-off-by Christian Borntraeger <[email protected]>
--- virt/kvm/kvm_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
virt/kvm/kvm_main.c +1 -2
@@ -1188,7 +1188,6 @@ static int kvm_dev_ioctl_create_vm(void)static long kvm_dev_ioctl (struct file *filp,unsigned int ioctl,unsigned long arg) { -void __user *argp = (void __user *)arg;long r = -EINVAL ;switch (ioctl) {
@@ -1205,7 +1204,7 @@ static long kvm_dev_ioctl(struct file *f r =kvm_dev_ioctl_create_vm ();break ;case KVM_CHECK_EXTENSION : - r =kvm_dev_ioctl_check_extension ((long )argp); + r =kvm_dev_ioctl_check_extension (arg);break ;case KVM_GET_VCPU_MMAP_SIZE : r = -EINVAL ;
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone