Re: [PATCH v2] qed: remove an unneed NULL check on list iterator

From: patchwork-bot+netdevbpf
Date: Fri Apr 08 2022 - 00:10:40 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

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