提交 d7107959 编写于 作者: M Martin Kletzander

conf: Don't complicate find loop

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 ae612493
......@@ -14898,12 +14898,9 @@ virDomainShmemDefFind(virDomainDefPtr def,
for (i = 0; i < def->nshmems; i++) {
if (virDomainShmemDefEquals(shmem, def->shmems[i]))
break;
return i;
}
if (i < def->nshmems)
return i;
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册