mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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 <joerg.roedel@amd.com>
This commit is contained in:
parent
cdc7b83726
commit
7398ca79d2
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue