diff options
| author | Xiaomeng Tong <[email protected]> | 2022-04-06 09:59:21 +0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-04-07 21:04:10 -0700 |
| commit | 4daf5f1956308641092769aa1924286b19513328 (patch) | |
| tree | 93401cd00dd94b0b493f847e76680cd005c4da5f /tools/perf/scripts/python/libxed.py | |
| parent | 6a62924c0a81316b2aff713566593405b57545d5 (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions