qemuMonitorJSONGetStringListProperty: Don't return element count

The only caller doesn't care about the number of elements in the string
list so we don't have to calculate it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-06-14 16:22:30 +02:00
parent 99908b930d
commit 7d50abb805
1 changed files with 1 additions and 1 deletions

View File

@ -6524,7 +6524,7 @@ qemuMonitorJSONGetStringListProperty(qemuMonitor *mon,
if (!(*strList = virJSONValueObjectGetStringArray(reply, "return")))
return -1;
return g_strv_length(*strList);
return 0;
}