diff options
author | Xiongfeng Wang <wangxiongfeng2@huawei.com> | 2023-08-08 05:49:31 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-09 23:03:27 +0300 |
commit | d8c21ef7b2b147a7e0d0497da120a3bc73be7fbe (patch) | |
tree | b8227fb3c37cc494ed7126285ca3f8ac0b920cbe /drivers/net/ethernet/moxa | |
parent | 09c80167dbec3c742ed0d0218eef13be648b47ed (diff) | |
download | linux-d8c21ef7b2b147a7e0d0497da120a3bc73be7fbe.tar.xz |
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 <wangxiongfeng2@huawei.com>
Reviewed-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230808024931.147048-1-wangxiongfeng2@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/moxa')
0 files changed, 0 insertions, 0 deletions