Skip to content

Commit

Permalink
kvm/iommu: fix compile warning
Browse files Browse the repository at this point in the history
This fixes a compile warning about a variable thats maybe used
uninitialized in the function.

Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent cdc7b83 commit 7398ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 7398ca7

Please sign in to comment.