Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1227354pxb; Fri, 1 Apr 2022 07:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlphUr8QFo0VWmgrS+PsZqW4GClS9jWs0AGOuTyhMspEQxkqlQdzi5zPQ7cS4sdPtZdA/O X-Received: by 2002:a17:906:6a1b:b0:6e0:b38b:f74c with SMTP id qw27-20020a1709066a1b00b006e0b38bf74cmr208534ejc.46.1648824967090; Fri, 01 Apr 2022 07:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648824967; cv=none; d=google.com; s=arc-20160816; b=M39bL0/IhHAf4+fje5qktTPcCeMxSLD2lyZOAzU1SaTGD0FP8cQrtmF6GE7Jka70oo VmL1sk3gIL+wiW3HStLen9khBgoTDed2+v1IZ9pVwZcgoX2FOk1AssEb3r0sMeGTP6mc bruSykHNLPDj7/pJuICysUWBHRWKwlhVht6PROqUglg4Q7+8AqT/Lur5TbOsxxZCjY+E yQvccr+AjWeUu/9ELNnGxMutYdWAqLjZJusDQnoHSjAcicMPhif+g4dKGGT5SM9jC0kL m76Qkmwyw3tmLLRjiGitarXdc2tgPFBdlWYJid+XimdSVBgwJvplKHdNCMaf0E8tIedg QkIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=6bgjyl6V/KqG6c9ifxOEg5MydY4LiRTuZqDBZKCQr5w=; b=sOWGr2jMidzcbW+vyc5cLkPDttcQJNGzSaaX9rDywlPQoMOJOkq4AypE1or0zu8Agm AM498QmWIgBnFzh8+qUZcMAw1GUNrcUhXH17JA++xfywU6VI1H5NdDL6w0OOzwxz0cBZ +oGw72Jg2MWOAD32vZ0UUp8PazcLeOEz+lT5xgc/lR5wLBLzL6oup0J1+HAJhBPoV//k nI/Qji4neZfCz8vgekry2lBIESREL0+IW7BWjzsdyo9a5Xky2hOxQzgUDdOsCt+8AzdS 4NBeBZdQ+sx+E508Jp5u/NCJImMe5QqNuhY6ITLKo6Zm8E77UeC8RhckT35WWkIddcU7 vbHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hX9zxjqD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp40-20020a1709073e2800b006df8858115esi2123105ejc.111.2022.04.01.07.55.36; Fri, 01 Apr 2022 07:56:07 -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=@intel.com header.s=Intel header.b=hX9zxjqD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbiCaSAp (ORCPT + 99 others); Thu, 31 Mar 2022 14:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiCaSAn (ORCPT ); Thu, 31 Mar 2022 14:00:43 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6238F56C18; Thu, 31 Mar 2022 10:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648749536; x=1680285536; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=WRCw9IYWVWD2FwPoSWrfbYA0F/d4ObWuXdSimK0KSN4=; b=hX9zxjqDb90NVIheVTRxBvR34q7xKeIxuCZEmNMSsymoGXIx0LnY0e7O syXOQitrSZl9qGGobKDpcCsNmk2K0mdR5WdiRaZj9fVpIdCUXE+dVtJOW IhhrXTouxCRpdzqE8GR4pmMHmOFSwjKdEby3WEFfhIm4rll9icsI0SCVv yDqxDdnv7OGJeqC0PxAfR/U0/R41tyLIOwU3VNvgAO5YbjR7cURPnlLe5 O0v5Gmm2XGwbnhsSmFVRVb88uevQjHIhQKLxzHneQJOqO1Z0fpwEYZag7 9MAYYSg5Grq3Hj0hsqQyDI0EEiC8vBnNrmpjVcbqyAiDyMR1aI6KDi5V6 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="239836337" X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="239836337" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 10:58:56 -0700 X-IronPort-AV: E=Sophos;i="5.90,225,1643702400"; d="scan'208";a="520724489" Received: from kyelchur-mobl.amr.corp.intel.com (HELO vcostago-mobl3) ([10.212.245.225]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 10:58:55 -0700 From: Vinicius Costa Gomes To: Jakob Koschel Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Netdev , Linux Kernel Mailing List , Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." Subject: Re: [PATCH] taprio: replace usage of found with dedicated list iterator variable In-Reply-To: References: <20220324072607.63594-1-jakobkoschel@gmail.com> <87fsmz3uc6.fsf@intel.com> Date: Thu, 31 Mar 2022 10:58:55 -0700 Message-ID: <877d8a3sww.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,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 Jakob Koschel writes: >> On 31. Mar 2022, at 01:15, Vinicius Costa Gomes wrote: >> >> Hi, >> >> Jakob Koschel writes: >> >>> 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. >>> >>> 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]. >>> >>> 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. >>> >>> Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ >>> Signed-off-by: Jakob Koschel >>> --- >> >> Code wise, patch look good. >> >> Just some commit style/meta comments: >> - I think that it would make more sense that these were two separate >> patches, but I haven't been following the fallout of the discussion >> above to know what other folks are doing; > > Thanks for the input, I'll split them up. > >> - Please use '[PATCH net-next]' in the subject prefix of your patch(es) >> when you next propose this (net-next is closed for new submissions for >> now, it should open again in a few days); > > I'll include that prefix, thanks. > > Paolo Abeni [CC'd] suggested to bundle all net-next patches in one series [1]. > If that's the general desire I'm happy to do that. I agree with that, having one series for the whole net-next is going to be easier for everyone. Cheers, -- Vinicius