projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3465611
)
KVM: remove redundant assigment of return value in kvm_dev_ioctl
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Thu, 4 Sep 2014 19:13:32 +0000
(21:13 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 5 Sep 2014 10:01:15 +0000
(12:01 +0200)
The first statement of kvm_dev_ioctl is
long r = -EINVAL;
No need to reassign the same value.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c
patch
|
blob
|
blame
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index cc7bd286d1354c109760b7d4cf37f040f40edb8e..de1ae82ba1921928d90a9e5234c853566cdd4c64 100644
(file)
--- a/
virt/kvm/kvm_main.c
+++ b/
virt/kvm/kvm_main.c
@@
-2627,7
+2627,6
@@
static long kvm_dev_ioctl(struct file *filp,
switch (ioctl) {
case KVM_GET_API_VERSION:
- r = -EINVAL;
if (arg)
goto out;
r = KVM_API_VERSION;
@@
-2639,7
+2638,6
@@
static long kvm_dev_ioctl(struct file *filp,
r = kvm_vm_ioctl_check_extension_generic(NULL, arg);
break;
case KVM_GET_VCPU_MMAP_SIZE:
- r = -EINVAL;
if (arg)
goto out;
r = PAGE_SIZE; /* struct kvm_run */