Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30769590rwd; Thu, 6 Jul 2023 10:23:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1A7bxVYdqqqc7EDitSncFd3WvOctZ+qqP4QvnroI2elTyE54GXnzuoSKutOCXjdhSaiio X-Received: by 2002:a05:6a00:39a5:b0:66a:4a45:e017 with SMTP id fi37-20020a056a0039a500b0066a4a45e017mr2501334pfb.20.1688664235462; Thu, 06 Jul 2023 10:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688664235; cv=none; d=google.com; s=arc-20160816; b=Rlgnpqz2iU30NdaGXtgdTvTqcf4+dQfOzcblsdJDNYoDnoz67xlmgiyALXwmdOkiwQ PjhKuIQNywo4tSnXWh+os73gUy6SypdqTEdi/jOZLfjr06ZjZY7VwZqM0vPdolqFWXXO BKKbpShCZNHTGL5JUGmTDnR3DRygX/ObtBdaNeq+74vNXxLQBBwavWJsB7AWnXR5HPcm alO+AmcorIypwRe5wYjNJhDYcApQc1J5lBiKy8yfqHMoiLUuyz4kvFMCe+SAcqPsxpJ4 CDTc3K0hEigU5rBvEV0DAlPrVbTWppoPROQ+P+mCty17hgDXBECia6Nh2DoF+N/mcufN Webg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=56KuZrkMbRd2J7ViCPHtCF/MZvoglrK3t93PpbFw9Sg=; fh=uRT2EQUZjGv+PoPILmjp7+iEjN0ge1mcTpbvivyJ6ng=; b=fzkCqoEm6nB15kxY7+aItRBfFTibIhhGjLuo/uDuS5YxK0nqaey8e+nXD1TLO9D7ah Ib7T/oFHjO3yk7SZXR1eDib5Hque+uJGuRXP6zg8IQi45/SocTs82xKJXQw/PDeE1OAj LlpCXAatcpzOU98KWgxSlmsePtyrCgo755LYvkulVcWuTngCjdaZzTFTTDfj9R0bs941 mTJD6R3IU1NPCmZZv4lxQRNmMmHw+DPQeSR7V6fmvPWZ1NwtVOAaeEZmNzlIsjHQ3rrR yQu2sjwNgbuXuVHrO6RwR9JyGzHDF87na8bEBpjHU9qzxJ75M3syzN/gbaTsOzCD4BXI rYTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=NI1Qkk5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq5-20020a056a00330500b0066e608447d8si1813509pfb.119.2023.07.06.10.23.41; Thu, 06 Jul 2023 10:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=NI1Qkk5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbjGFROI (ORCPT + 99 others); Thu, 6 Jul 2023 13:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232611AbjGFROG (ORCPT ); Thu, 6 Jul 2023 13:14:06 -0400 Received: from smtp.smtpout.orange.fr (smtp-27.smtpout.orange.fr [80.12.242.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3DA21BE9 for ; Thu, 6 Jul 2023 10:14:03 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id HSYJqKhc3f9upHSYJqznA5; Thu, 06 Jul 2023 19:14:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1688663641; bh=56KuZrkMbRd2J7ViCPHtCF/MZvoglrK3t93PpbFw9Sg=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=NI1Qkk5cFyNMwPvdl5dFpR6F+HQKlxywtwBxcRHHwB8l1PcNTga97/IQEky9Fnf83 3MNxs7faTlWo9s1BrpxV0+2yduVgzquLEGxgFTayoiAQ8fGQxXPeRDXlPXllD35qpq JC8pZ6YyHsuAVG4M7uzmidgbQZ8+slpUSIccgyvqW0ViiJZLIAB2FtatPMbNwEuOJe Kvslkuitopvxweh2Qn2q6b+Xk/nLNxFh4C3iv8thkRujedw/XZN24MkrrcjK1YS37A MGwl1GnEKDIlgF1Zvth437FFPLY3RVnjL31ARVL954DYE1GgHFswNkY0GDSZizRDHM UGBHpjyIOWGyQ== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 06 Jul 2023 19:14:01 +0200 X-ME-IP: 86.243.2.178 Message-ID: Date: Thu, 6 Jul 2023 19:13:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1] net:tipc:Remove repeated initialization Content-Language: fr, en-US To: Wang Ming Cc: Jon Maloy , Ying Xue , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Jakub Kicinski References: <20230706134226.9119-1-machel@vivo.com> <20230706084729.12ed5725@kernel.org> From: Christophe JAILLET In-Reply-To: <20230706084729.12ed5725@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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