mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 16:13:54 +08:00
KVM: Remove useless assignment
Line 1809 of kvm_main.c is useless, value is overwritten in line 1815: 1809 now = min(count, PAGE_SIZE / size); 1810 1811 if (!down) 1812 in_page = PAGE_SIZE - offset_in_page(address); 1813 else 1814 in_page = offset_in_page(address) + size; 1815 now = min(count, (unsigned long)in_page / size); 1816 if (!now) { Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
1e4e6e0013
commit
9fdaaac38e
@ -1776,8 +1776,6 @@ int kvm_setup_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
now = min(count, PAGE_SIZE / size);
|
|
||||||
|
|
||||||
if (!down)
|
if (!down)
|
||||||
in_page = PAGE_SIZE - offset_in_page(address);
|
in_page = PAGE_SIZE - offset_in_page(address);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user