qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/2] net: Make qmp_query_rx_filter() with name argum


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH 1/2] net: Make qmp_query_rx_filter() with name argument more obvious
Date: Thu, 24 Apr 2014 15:44:17 +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 <address@hidden>
---
 net/net.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/net.c b/net/net.c
index e3ef1e4..3175809 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1064,6 +1064,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) {
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]