tg3: Validate VPD checksum with pci_vpd_check_csum()
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 18 Aug 2021 19:05:26 +0000 (21:05 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Aug 2021 20:49:01 +0000 (15:49 -0500)
commit8d6ab5c5accd1a808b51a69bafa441cedf66006f
tree017f34c480e9a636a6d845349a9e61bf832f0b7f
parentf240e15097c5004811a58f2cbc170bf90d06d0a9
tg3: Validate VPD checksum with pci_vpd_check_csum()

Validate the VPD checksum with pci_vpd_check_csum() to simplify the code.

Link: https://lore.kernel.org/r/7297fce9-47db-3b86-366e-10b9ef43beaf@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/net/ethernet/broadcom/tg3.c