diff options
author | Xiongfeng Wang <[email protected]> | 2023-08-08 10:49:31 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-09 13:03:27 -0700 |
commit | d8c21ef7b2b147a7e0d0497da120a3bc73be7fbe (patch) | |
tree | b8227fb3c37cc494ed7126285ca3f8ac0b920cbe /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 09c80167dbec3c742ed0d0218eef13be648b47ed (diff) |
net: txgbe: Use pci_dev_id() to simplify the code
PCI core API pci_dev_id() can be used to get the BDF number for a pci
device. We don't need to compose it manually. Use pci_dev_id() to
simplify the code a little bit.
Signed-off-by: Xiongfeng Wang <[email protected]>
Reviewed-by: Yang Yingliang <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions