[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164939101213.29309.15840560082982456814.git-patchwork-notify@kernel.org>
Date: Fri, 08 Apr 2022 04:10:12 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Xiaomeng Tong <xiam0nd.tong@...il.com>
Cc: aelior@...vell.com, manishc@...vell.com, davem@...emloft.net,
kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] qed: remove an unneed NULL check on list iterator
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@...nel.org>:
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
Powered by blists - more mailing lists