summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-01-03 16:37:53 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 16:37:53 +0100
commit7398ca79d227f7cd7f2ce23f08624e30081dcb4e (patch)
tree17cf5890a12e25517462e27b86c375663df7341a /virt/kvm
parentcdc7b83726297b43deed0455d8732163cc59802a (diff)
downloadlinux-3.10-7398ca79d227f7cd7f2ce23f08624e30081dcb4e.tar.gz
linux-3.10-7398ca79d227f7cd7f2ce23f08624e30081dcb4e.tar.bz2
linux-3.10-7398ca79d227f7cd7f2ce23f08624e30081dcb4e.zip
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/kvm')
-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 d0bebaa5bf0..e9693a29d00 100644
--- a/virt/kvm/iommu.c
+++ b/virt/kvm/iommu.c
@@ -71,7 +71,7 @@ unmap_pages:
static int kvm_iommu_map_memslots(struct kvm *kvm)
{
- int i, r;
+ int i, r = 0;
down_read(&kvm->slots_lock);
for (i = 0; i < kvm->nmemslots; i++) {