From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20086C433F5 for ; Fri, 8 Apr 2022 04:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234182AbiDHEMk (ORCPT ); Fri, 8 Apr 2022 00:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbiDHEMR (ORCPT ); Fri, 8 Apr 2022 00:12:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751781EB805; Thu, 7 Apr 2022 21:10: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 sin.source.kernel.org (Postfix) with ESMTPS id E472DCE29FF; Fri, 8 Apr 2022 04:10:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 450C4C385A3; Fri, 8 Apr 2022 04:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649391012; bh=/ocmwyPmcxJaE7A3jgFW3oPLW1FUfozUVp4GcoMvkoE=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=SU50/V/1U1F4SxYfBIQWfbo0x2uJIoLXzsSxn2er9wPOXoHmtlBSuG5CIrrohjVTb nNg9fEtBcYEMA9yFHB33kFDTr1uKGWwVTcUqvHW38MnmsXHOBQinc6bGlar7TYBpst NPG8GubMiAxfSQQUoMX6MxeKQYUQHHwbzRvZz4i2NmjLG5L0IHOGxpZ98gmC743coz o1gV3lGBsKH1np/fryx2V6nRC3KtwEJ+yjt0DUzZciS1Nmak3kEg2r41Bc/13SIobC 7XvUq0Ggf4JUvRSDa2EHhww0FP7BtMsq57lFBgD1C7Im3Md4qveOx/FzyzySfXmZTC cMpeY/dYt35kw== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 22C9BE85BCB; Fri, 8 Apr 2022 04:10:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] qed: remove an unneed NULL check on list iterator From: patchwork-bot+netdevbpf@kernel.org Message-Id: <164939101213.29309.15840560082982456814.git-patchwork-notify@kernel.org> Date: Fri, 08 Apr 2022 04:10:12 +0000 References: <20220406015921.29267-1-xiam0nd.tong@gmail.com> In-Reply-To: <20220406015921.29267-1-xiam0nd.tong@gmail.com> To: Xiaomeng Tong Cc: aelior@marvell.com, manishc@marvell.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Wed, 6 Apr 2022 09:59:21 +0800 you wrote: > The define for_each_pci_dev(d) is: > while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL) > > Thus, the list iterator 'd' is always non-NULL so it doesn't need to > be checked. So just remove the unnecessary NULL check. Also remove the > unnecessary initializer because the list iterator is always initialized. > > [...] Here is the summary with links: - [v2] qed: remove an unneed NULL check on list iterator https://git.kernel.org/netdev/net-next/c/4daf5f195630 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html