aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-01-03 10:37:53 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 10:37:53 -0500
commit7398ca79d227f7cd7f2ce23f08624e30081dcb4e (patch)
tree17cf5890a12e25517462e27b86c375663df7341a /virt
parentcdc7b83726297b43deed0455d8732163cc59802a (diff)
kvm/iommu: fix compile warning
This fixes a compile warning about a variable thats maybe used uninitialized in the function. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c
index d0bebaa5bf0a..e9693a29d00e 100644
--- a/virt/kvm/iommu.c
+++ b/virt/kvm/iommu.c
@@ -71,7 +71,7 @@ unmap_pages:
71 71
72static int kvm_iommu_map_memslots(struct kvm *kvm) 72static int kvm_iommu_map_memslots(struct kvm *kvm)
73{ 73{
74 int i, r; 74 int i, r = 0;
75 75
76 down_read(&kvm->slots_lock); 76 down_read(&kvm->slots_lock);
77 for (i = 0; i < kvm->nmemslots; i++) { 77 for (i = 0; i < kvm->nmemslots; i++) {