From: Paolo Bonzini <pbonzini@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>,
Thomas Huth <thuth@redhat.com>, Li Qiang <liq3ea@gmail.com>,
stefanha@redhat.com, marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org, QEMU Trivial <qemu-trivial@nongnu.org>,
Markus Armbruster <armbru@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] hw: set_netdev: remove useless code
Date: Fri, 9 Nov 2018 11:00:19 +0100 [thread overview]
Message-ID: <87933d44-2ae8-f5c6-cc60-04456fb2bcff@redhat.com> (raw)
In-Reply-To: <57a92d57-dd52-e347-b3be-e9fefb150672@redhat.com>
On 09/11/2018 09:29, Laurent Vivier wrote:
> On 09/11/2018 09:26, Thomas Huth wrote:
>> On 2018-11-09 09:21, Laurent Vivier wrote:
>>> On 09/11/2018 09:13, Li Qiang wrote:
>>>> In set_netdev(), the peers[i] is initialized
>>>> qemu_find_net_clients_except() when i is in
>>>> 0 between 'queues' it can't be NULL.
>>>>
>>>> Signed-off-by: Li Qiang <liq3ea@gmail.com>
>>>> ---
>>>> hw/core/qdev-properties-system.c | 4 ----
>>>> 1 file changed, 4 deletions(-)
>>>>
>>>> diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c
>>>> index 8b22fb5..b45a7ef 100644
>>>> --- a/hw/core/qdev-properties-system.c
>>>> +++ b/hw/core/qdev-properties-system.c
>>>> @@ -288,10 +288,6 @@ static void set_netdev(Object *obj, Visitor *v, const char *name,
>>>> }
>>>>
>>>> for (i = 0; i < queues; i++) {
>>>> - if (peers[i] == NULL) {
>>>> - err = -ENOENT;
>>>> - goto out;
>>>> - }
>>>>
>>>> if (peers[i]->peer) {
>>>> err = -EEXIST;
>>>>
>>>
>>> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
>>
>> So who can pick up such patches? We don't have a maintainer for the QDEV
>> subsystem anymore... should it go via qemu-trivial?
>
> It seems trivial enough to go via qemu-trivial, but it would be good to
> have a R-b from someone else than me to confirm.
I would have expected Jason to pick it up, after all it's networking,
but it's okay if you want to take it too.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Thanks,
Paolo
next prev parent reply other threads:[~2018-11-09 10:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-09 8:13 [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Li Qiang
2018-11-09 8:21 ` Laurent Vivier
2018-11-09 8:26 ` Thomas Huth
2018-11-09 8:29 ` Laurent Vivier
2018-11-09 10:00 ` Paolo Bonzini [this message]
2018-11-09 10:59 ` Laurent Vivier
2018-11-12 8:59 ` [Qemu-devel] qdev has no maintainer (was: [PATCH] hw: set_netdev: remove useless code) Markus Armbruster
2018-11-09 9:07 ` [Qemu-devel] [PATCH] hw: set_netdev: remove useless code Thomas Huth
2018-11-09 9:25 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87933d44-2ae8-f5c6-cc60-04456fb2bcff@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=liq3ea@gmail.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).