Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3535275pxb; Mon, 4 Apr 2022 20:18:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDCC1vjUsBziOiImuQ2cXv4mFN1DzXsk44vtyVI+wmsjcK/xdICsoHBM1+hSrNQ6y2vbqW X-Received: by 2002:a65:6909:0:b0:382:53c4:43c5 with SMTP id s9-20020a656909000000b0038253c443c5mr1112395pgq.502.1649128688386; Mon, 04 Apr 2022 20:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649128688; cv=none; d=google.com; s=arc-20160816; b=rEDJ03NDI7Izm0Erdy8iFb9pcBQNXXT4EFIM3iGWIsZi3UKZ9pWEofr0Qk/I3/UO6x OlPGB5sp1Y6fkcTcxxkmME6MbmcfWC+KiF1LAohCql7WF5AAnSBxIZ//Qav29jyBvOkp SwLw6kTGe60OOaKv8cJnZ/CzK4aQ1LwLirpq7Z+GOtRHlQartbPZXGsOZHIQp7giYIhM 6ce47GPbmZI1qhgtq5WXWB4U3nFLDHYfuKz26wQAuHZaUw8U85tw6J2jvsaTAPBXk+02 rQA3aJgYZeBxkvG9rmx58PcCFhPpUfpe9BTO5K8LX5WESDFOxDtL+l9V/m4Dz+sj+4/+ srQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kadWgdFtb3iFqgErdEE2kwIfxrpPk39Vr1ia0EhlfyE=; b=fmlW3uk97pdpkjkc8in6rm/+5pdXTDyfLeMgHmipcHa1UEVyLx6b1UKHj5r4HEFir7 SfqLceU/wcgXD1Qq+tOI6T+W6HQb0wTxiwtb7NspIzx/qZuh8BWIN3M+0jAC1RTr2gVO Q7PImYn6CjcxKkneUBzl4Yj24kVf/9V6NlTQ824E0dGGmCG4dEKl9lqjObt9+g1LSdHr MMyqnT+AQOmUEri03+SQVBMf+hPBnyXtLqXcfVVdQr4QAocX55W/l8K8NjDPJd7AT8to xA5SMRXBK205Gl0sLaXGlWRwdFqwaX0lRjNov4Oy61u5tplHmek5XB9ldG3aO1oGdewD 6g/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="di/51BW7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i6-20020a170902cf0600b00153b2d1662esi11532087plg.566.2022.04.04.20.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="di/51BW7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 55D4332C217; Mon, 4 Apr 2022 18:18:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237100AbiDCNMd (ORCPT + 99 others); Sun, 3 Apr 2022 09:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358771AbiDCNMZ (ORCPT ); Sun, 3 Apr 2022 09:12:25 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C8327156; Sun, 3 Apr 2022 06:10:25 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9ECA95C0106; Sun, 3 Apr 2022 09:10:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 03 Apr 2022 09:10:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=kadWgdFtb3iFqgErd EE2kwIfxrpPk39Vr1ia0EhlfyE=; b=di/51BW7wfwefxfnGxoW7BuOOJPWFu7zm UKs5/cSw4MJ1LsZssOZKqmHyiK+H+sxMqcMpN6Hs/+/DtgVj6Pxwc3X1vODjDnzV ScI7SxMJk6leN6sZZV7uczNoBd5WXhzZ2mspcqbleD//wkeqUsE/6754SFmqt1tY D67GiSXhRwQwTKE0la/V3ysE+EZnAJRpXeSLB8tsEgMxLkpPbPXJUZLjc68upKQ1 CyX/nWhwft3n/xCb8e/uujSZ/Lxtf5limVKse450ZKWuefeyZeb1IWsyhjqW2HlW C6kbq94Og9X2UuenxBODCbsTysVdkNe7s2YQZOSktzm3uHWDiCKOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejtddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpedtffekkeefudffveegueejffejhfetgfeuuefgvedtieehudeuueekhfduheel teenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiug hoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Apr 2022 09:10:21 -0400 (EDT) Date: Sun, 3 Apr 2022 16:10:19 +0300 From: Ido Schimmel To: Tom Rix Cc: idosch@nvidia.com, petrm@nvidia.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mlxsw: spectrum_router: simplify list unwinding Message-ID: References: <20220402121516.2750284-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220402121516.2750284-1-trix@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat, Apr 02, 2022 at 08:15:16AM -0400, Tom Rix wrote: > The setting of i here > err_nexthop6_group_get: > i = nrt6; > Is redundant, i is already nrt6. So remove > this statement. > > The for loop for the unwinding > err_rt6_create: > for (i--; i >= 0; i--) { > Is equivelent to > for (; i > 0; i--) { > > Two consecutive labels can be reduced to one. > > Signed-off-by: Tom Rix For net-next: Reviewed-by: Ido Schimmel