On 8/11/23 13:06, Zheng Zengkai wrote:
PCI core API pci_dev_id() can be used to get the BDF number for a pci
device. Use the API to simplify the code.
Zheng Zengkai (5):
et131x: Use pci_dev_id() to simplify the code
tg3: Use pci_dev_id() to simplify the code
net: smsc: Use pci_dev_id() to simplify the code
net: tc35815: Use pci_dev_id() to simplify the code
net: ngbe: use pci_dev_id() to simplify the code
drivers/net/ethernet/agere/et131x.c | 3 +--
drivers/net/ethernet/broadcom/tg3.c | 3 +--
drivers/net/ethernet/smsc/smsc9420.c | 3 +--
drivers/net/ethernet/toshiba/tc35815.c | 3 +--
drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c | 3 +--
5 files changed, 5 insertions(+), 10 deletions(-)
code looks fine,
I wonder if it would be better to have just one patch here?