diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-22 16:49:36 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-24 19:41:58 +0300 |
commit | 2d57dd6673a87ea23d8660257162d6280fe7b2e6 (patch) | |
tree | 17bdd3533a2108636896861ce86d41c7d737ef63 /drivers/net/ethernet/broadcom/bnx2.c | |
parent | 667bb0e8f7106c6ca3b30254a7fdcd1ea04d3580 (diff) | |
download | linux-2d57dd6673a87ea23d8660257162d6280fe7b2e6.tar.xz |
sfc: falcon: 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.
This is the same as 37838aa437c7 ("sfc: Search VPD with
pci_vpd_find_ro_info_keyword()"), just for the falcon chip version.
Link: https://lore.kernel.org/r/898282a1-13bd-17bc-2e9a-d3dcd336b46c@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/bnx2.c')
0 files changed, 0 insertions, 0 deletions