]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: txgbe: use pci_dev_id() helper
authorYu Liao <liaoyu15@huawei.com>
Mon, 26 Aug 2024 01:21:00 +0000 (09:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Aug 2024 21:20:13 +0000 (14:20 -0700)
commitd76867efebcb20752345e5a41d38bd456427b325
tree9f3525a882c1ef47b7df0cf3070a6ce60e535e07
parentbe04024a24a93f761a7b2c5f2de46db0f3acdc74
net: txgbe: use pci_dev_id() helper

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: Yu Liao <liaoyu15@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240826012100.3975175-1-liaoyu15@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c