PCI/VPD: Remove struct pci_vpd.valid member
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 8 Aug 2021 17:21:02 +0000 (19:21 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Aug 2021 17:48:36 +0000 (12:48 -0500)
commit22ff2bcec704a7a8c43a998251e0757cd2de66e1
tree93f7da05f6f35bef6d2d688ed6475116f3493e9b
parenta38fccdb6289d9e4796e746040b491bb0f31b151
PCI/VPD: Remove struct pci_vpd.valid member

Instead of having a separate flag, use vp->len != 0 as indicator that VPD
validity has been checked.  Now vpd->len == PCI_VPD_SZ_INVALID indicates
that VPD is invalid.

Link: https://lore.kernel.org/r/9f777bc7-5316-e1b8-e5d4-f9f609bdb5dd@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c