[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a409e348-0d15-e7f6-5d97-1ebe8341027a@wanadoo.fr>
Date: Thu, 6 Jul 2023 19:13:59 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Wang Ming <machel@...o.com>
Cc: Jon Maloy <jmaloy@...hat.com>, Ying Xue <ying.xue@...driver.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
tipc-discussion@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
opensource.kernel@...o.com, Jakub Kicinski <kuba@...nel.org>
Subject: Re: [PATCH v1] net:tipc:Remove repeated initialization
Le 06/07/2023 à 17:47, Jakub Kicinski a écrit :
> On Thu, 6 Jul 2023 21:42:09 +0800 Wang Ming wrote:
>> The original code initializes 'tmp' twice,
>> which causes duplicate initialization issue.
>> To fix this, we remove the second initialization
>> of 'tmp' and use 'parent' directly forsubsequent
>> operations.
>>
>> Signed-off-by: Wang Ming <machel@...o.com>
>
> Please stop sending the "remove repeated initialization" patches
> to networking, thanks.
>
>
The patch also looks just bogus, as 'parent' is now always NULL when:
rb_link_node(&m->tree_node, parent, n);
is called after the while loop.
CJ
Powered by blists - more mailing lists