aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent.Vivier@bull.net>2007-08-01 14:51:09 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:23 -0400
commit9fdaaac38e8c8a63c6383b807b91fea2d51da95d (patch)
tree57ec20214ff8c70ad256b0aabe1b8e6cd35267f7 /drivers/kvm
parent1e4e6e00136b82a5595de903c28912afee1178cb (diff)
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>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/kvm_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 1b86ab0d42f6..62adaeedfdb0 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1776,8 +1776,6 @@ int kvm_setup_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
1776 return 1; 1776 return 1;
1777 } 1777 }
1778 1778
1779 now = min(count, PAGE_SIZE / size);
1780
1781 if (!down) 1779 if (!down)
1782 in_page = PAGE_SIZE - offset_in_page(address); 1780 in_page = PAGE_SIZE - offset_in_page(address);
1783 else 1781 else