From: Joerg Roedel Date: Sat, 3 Jan 2009 15:37:53 +0000 (+0100) Subject: kvm/iommu: fix compile warning X-Git-Tag: v2.6.29-rc1~522^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7398ca79d227f7cd7f2ce23f08624e30081dcb4e;p=linux-2.6-omap-h63xx.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 d0bebaa5bf0..e9693a29d00 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++) {