diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-04-24 15:44:17 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-04-25 15:58:07 +0200 |
commit | 638fb14169ad96cf9bc0dd5f61460daaecee5bb1 (patch) | |
tree | 2793f534da573dbd084d1b949a958e5abbf1b031 | |
parent | f663faac3e2e9d9134415f75d429ae30432e6038 (diff) |
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>
-rw-r--r-- | net/net.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1066,6 +1066,10 @@ RxFilterInfoList *qmp_query_rx_filter(bool has_name, const char *name, " rx-filter querying", name); break; } + + if (has_name) { + break; + } } if (filter_list == NULL && !error_is_set(errp) && has_name) { |