commit | 7398ca79d227f7cd7f2ce23f08624e30081dcb4e | [log] [tgz] |
---|---|---|
author | Joerg Roedel <joerg.roedel@amd.com> | Sat Jan 03 16:37:53 2009 +0100 |
committer | Joerg Roedel <joerg.roedel@amd.com> | Sat Jan 03 16:37:53 2009 +0100 |
tree | 17cf5890a12e25517462e27b86c375663df7341a | |
parent | cdc7b83726297b43deed0455d8732163cc59802a [diff] [blame] |
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>
diff --git a/virt/kvm/iommu.c b/virt/kvm/iommu.c index d0bebaa..e9693a2 100644 --- a/virt/kvm/iommu.c +++ b/virt/kvm/iommu.c
@@ -71,7 +71,7 @@ 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++) {