From: Joerg Roedel Date: Sat, 3 Jan 2009 15:37:53 +0000 (+0100) Subject: kvm/iommu: fix compile warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7398ca79d227f7cd7f2ce23f08624e30081dcb4e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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++) {