Skip to content
Snippets Groups Projects
Commit 7398ca79 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

kvm/iommu: fix compile warning


This fixes a compile warning about a variable thats maybe used
uninitialized in the function.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent cdc7b837
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ int kvm_iommu_map_pages(struct kvm *kvm, ...@@ -71,7 +71,7 @@ int kvm_iommu_map_pages(struct kvm *kvm,
static int kvm_iommu_map_memslots(struct kvm *kvm) static int kvm_iommu_map_memslots(struct kvm *kvm)
{ {
int i, r; int i, r = 0;
down_read(&kvm->slots_lock); down_read(&kvm->slots_lock);
for (i = 0; i < kvm->nmemslots; i++) { for (i = 0; i < kvm->nmemslots; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment