diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 16:37:53 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 16:37:53 +0100 |
commit | 7398ca79d227f7cd7f2ce23f08624e30081dcb4e (patch) | |
tree | 17cf5890a12e25517462e27b86c375663df7341a /virt | |
parent | cdc7b83726297b43deed0455d8732163cc59802a (diff) | |
download | lwn-7398ca79d227f7cd7f2ce23f08624e30081dcb4e.tar.gz lwn-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')
-rw-r--r-- | virt/kvm/iommu.c | 2 |
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: 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++) { |