conf: Fix virDomainShmemDefFind

Due to the switch of parameters in a call to virDomainShmemDefEquals()
no device was found when looking for device with all the information
except address.  Also fix the indentation.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2016-09-21 15:14:46 +02:00
parent 44bf83e313
commit ae612493ff
1 changed files with 2 additions and 2 deletions

View File

@ -14897,8 +14897,8 @@ virDomainShmemDefFind(virDomainDefPtr def,
size_t i;
for (i = 0; i < def->nshmems; i++) {
if (virDomainShmemDefEquals(def->shmems[i], shmem))
break;
if (virDomainShmemDefEquals(shmem, def->shmems[i]))
break;
}
if (i < def->nshmems)