Commit 638fb141 authored by Markus Armbruster's avatar Markus Armbruster Committed by Stefan Hajnoczi
Browse files

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: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent f663faac
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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) {