mirror of https://github.com/xemu-project/xemu.git
net: Make qmp_query_rx_filter() with name argument more obvious
With a client name, the QMP command is specified to return a list of one element. This isn't locally obvious in the code. Make it so. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
f663faac3e
commit
638fb14169
|
@ -1066,6 +1066,10 @@ RxFilterInfoList *qmp_query_rx_filter(bool has_name, const char *name,
|
||||||
" rx-filter querying", name);
|
" rx-filter querying", name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (has_name) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter_list == NULL && !error_is_set(errp) && has_name) {
|
if (filter_list == NULL && !error_is_set(errp) && has_name) {
|
||||||
|
|
Loading…
Reference in New Issue