net: ngbe: use pci_dev_id() to simplify the code
authorZheng Zengkai <zhengzengkai@huawei.com>
Fri, 11 Aug 2023 11:07:02 +0000 (19:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Aug 2023 11:30:39 +0000 (12:30 +0100)
commitcf9b107f5fdddcd73b77169c30949d5e12e56eae
treec0679dfd58a795b37808664c10c290397503f897
parentca51d1356071e40d48169a308e996be779be56d4
net: ngbe: 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: Zheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c