Skip to content
Commit d8c21ef7 authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by Jakub Kicinski
Browse files

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: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230808024931.147048-1-wangxiongfeng2@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 09c80167
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment