Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ int kvm_iommu_map_pages(struct kvm *kvm,

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++) {