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 /net/net.c | |
| parent | f663faac3e2e9d9134415f75d429ae30432e6038 (diff) | |
| download | focaccia-qemu-638fb14169ad96cf9bc0dd5f61460daaecee5bb1.tar.gz focaccia-qemu-638fb14169ad96cf9bc0dd5f61460daaecee5bb1.zip | |
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>
Diffstat (limited to 'net/net.c')
| -rw-r--r-- | net/net.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index bc9ed6def0..ccb354aee8 100644 --- a/net/net.c +++ b/net/net.c @@ -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) { |