Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1673763ioo; Sun, 22 May 2022 23:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOfyR8TcooS/krrMoTWanuOOLAzkiYKUeJ6fxd3BPiwjMpx1DEyDS5q6FDinRBTq7f38eP X-Received: by 2002:a17:902:7582:b0:162:1131:23c2 with SMTP id j2-20020a170902758200b00162113123c2mr8298064pll.83.1653288945759; Sun, 22 May 2022 23:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288945; cv=none; d=google.com; s=arc-20160816; b=sLpr7Vf3MeYO7RVkNpiSYUVuXN0d3rY5XCs0qQc78WSMaTWOlsgDjjtNMdibS829Ks gFUgFk6k6+aEy4aTqyqvgqOM4pj1nBzczTCPh+1Q8e5dPX7Ml5BM5Wnxh4HPoEpmzCYu Xcde1QO/i30QwQ6rw+izidYyHLCy5XPArjttdcWTWlD2fj9fmYxKGULDmTD+AIZhr3uC kgi8wiTmHmagcY3kJ4nJJXZAnrKcn6UT1Vgbel4TB5hkCJQIf55YrilLR0vIL6mPFrdJ NAcMR3q0e9kYfBpXkoRorCOjCPpSR4HJQBcRTLjVu8AVDcuUlF9qbCCuuMkPcblSY5kI Iygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Pr0c0419Y9JxpQnOMWb1nkjfUw4FGJu/N5zDlJHBLPE=; b=PjoryI0x7mY8U8o/0zKIAVuKg7SmWPvMhs/DGKCFlFo0z3vFB104RoKZUsXsDeFXND adLwH4AxymIFMfEbJ/X3z7inAagwaYBZZGnH5UPN5aAW1W2NHS1Fzbpdypaag3HkOcuX U21O6niFoPOYQKpkE3H/LEFn+n31JQAkZ/bKMg2ofy4wVeA1ICOUb6z2a/v7fWYO4z3G qo41TAexnEE1G1W13Z7oLZOGAys5+Ecp1ZYtunqDCq0HqYMhryl5BJjvhMCckALPX1Cp j/ReC9M2K74QKeIAg99efIq1CLCLO939A9hooMUd6jz9td7DCG2M1zDb/e809cB/bDHn +H4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TogqE2uB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z4-20020a17090a468400b001dfdedbf129si12013028pjf.150.2022.05.22.23.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:55:45 -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=@kernel.org header.s=k20201202 header.b=TogqE2uB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7540FDFFE; Sun, 22 May 2022 23:21:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343636AbiEUDlU (ORCPT + 99 others); Fri, 20 May 2022 23:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239654AbiEUDlR (ORCPT ); Fri, 20 May 2022 23:41:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDC8FD1F; Fri, 20 May 2022 20:41:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98AFA61F07; Sat, 21 May 2022 03:41:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5C49C385A5; Sat, 21 May 2022 03:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653104475; bh=Pr0c0419Y9JxpQnOMWb1nkjfUw4FGJu/N5zDlJHBLPE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=TogqE2uBxxDY1bY2+eU1JRvcTnfqmQcUjpMzIhli7mdKWNCy2UytJjZW1vndBKpLs aAwZqvZF6na56hMTE8UKUp298ziukNH3zKC4+6UpZpXkLhY4KG83Nuogt9MkG9AEfy PKZRrzPlak+0IuDxOWfx30K33NulkZx+D5CeRa07b1jARpay3XMfjou/DepdH6+pZQ kmJmVZh7gkzfuFbBlZT6ep8B881IvaO6DYqKnKTndodvZuH2xB63/Msgc81FNs3KCZ D2S7VTsHw3kwiolL9Als3KmXLw+g3kVVOBt6xWKrpzA1WDBob3t+DIxOov9nqcSB1w CnSobQOc7VhVQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220324071019.59483-1-jakobkoschel@gmail.com> References: <20220324071019.59483-1-jakobkoschel@gmail.com> Subject: Re: [PATCH] clk: ti: clkctrl: replace usage of found with dedicated list iterator variable From: Stephen Boyd Cc: Michael Turquette , linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." , Jakob Koschel To: Jakob Koschel , Tero Kristo Date: Fri, 20 May 2022 20:41:13 -0700 User-Agent: alot/0.10 Message-Id: <20220521034114.E5C49C385A5@smtp.kernel.org> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Quoting Jakob Koschel (2022-03-24 00:10:19) > To move the list iterator variable into the list_for_each_entry_*() > macro in the future it should be avoided to use the list iterator > variable after the loop body. >=20 > To *never* use the list iterator variable after the loop it was > concluded to use a separate iterator variable instead of a > found boolean [1]. >=20 > This removes the need to use a found variable and simply checking if > the variable was set, can determine if the break/goto was hit. >=20 > Link: https://lore.kernel.org/all/CAHk-=3DwgRr_D8CB-D9Kg-c=3DEHreAsk5SqXP= wr9Y7k9sA6cWXJ6w@mail.gmail.com/ > Signed-off-by: Jakob Koschel > --- Applied to clk-next