summaryrefslogtreecommitdiff
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorXiaomeng Tong <xiam0nd.tong@gmail.com>2022-04-06 09:59:21 +0800
committerJakub Kicinski <kuba@kernel.org>2022-04-07 21:04:10 -0700
commit4daf5f1956308641092769aa1924286b19513328 (patch)
tree93401cd00dd94b0b493f847e76680cd005c4da5f /drivers/net/hyperv/netvsc.c
parent6a62924c0a81316b2aff713566593405b57545d5 (diff)
qed: remove an unneed NULL check on list iterator
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. Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com> Link: https://lore.kernel.org/r/20220406015921.29267-1-xiam0nd.tong@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
0 files changed, 0 insertions, 0 deletions