diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-18 21:03:44 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-20 22:49:00 +0200 |
commit | 37838aa437c78fefd7d818f5f01a3a3950e92f40 (patch) | |
tree | 947723f1c76760d0b6371da52b7a470f6fca05b3 /drivers/net/ethernet/broadcom/tg3.c | |
parent | sfc: Read VPD with pci_vpd_alloc() (diff) | |
download | linux-37838aa437c78fefd7d818f5f01a3a3950e92f40.tar.xz linux-37838aa437c78fefd7d818f5f01a3a3950e92f40.zip |
sfc: Search VPD with pci_vpd_find_ro_info_keyword()
Use pci_vpd_find_ro_info_keyword() to search for keywords in VPD to
simplify the code.
Replace netif_err() with pci_err() because the netdevice isn't registered
yet, which results in very ugly messages.
Use kmemdup_nul() instead of open-coding it.
Link: https://lore.kernel.org/r/bf5d4ba9-61a9-2bfe-19ec-75472732d74d@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
0 files changed, 0 insertions, 0 deletions