projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f663faa
)
net: Make qmp_query_rx_filter() with name argument more obvious
author
Markus Armbruster
<armbru@redhat.com>
Thu, 24 Apr 2014 13:44:17 +0000
(15:44 +0200)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 25 Apr 2014 13:58:07 +0000
(15:58 +0200)
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>
net/net.c
patch
|
blob
|
history
diff --git
a/net/net.c
b/net/net.c
index bc9ed6def0fd4363d152179e9eb29836309c6e57..ccb354aee8edac7cd3794f6cd8365a2f692c357a 100644
(file)
--- 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) {