qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [Qemu-devel] [PATCH] hw: set_netdev: remove useless c


From: Laurent Vivier
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] hw: set_netdev: remove useless code
Date: Fri, 9 Nov 2018 11:59:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 09/11/2018 11:00, Paolo Bonzini wrote:
> 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 <address@hidden>
>>>>> ---
>>>>>  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 <address@hidden>
>>>
>>> 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.

If Jason pushes it before I do, I will remove it from my queue.
[I have the bad habit to rebase by branch before a pull request]

Thanks,
Laurent




reply via email to

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