]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI/VPD: Remove pci_vpd_size() old_size argument
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 13 May 2021 20:56:09 +0000 (22:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Aug 2021 18:43:43 +0000 (13:43 -0500)
commit1285762c07121b449cd60166b813c0084b792736
treee3a5d14325558e918cc11232324993513f981f1b
parent5fe204eab174fd474227f23fd47faee4e7a6c000
PCI/VPD: Remove pci_vpd_size() old_size argument

vpd->len is initialized to PCI_VPD_MAX_SIZE, and if a quirk is used to set
a specific VPD size, then pci_vpd_set_size() sets vpd->valid, resulting in
pci_vpd_size() not being called. Therefore we can remove the old_size
argument. Note that we don't have to check off < PCI_VPD_MAX_SIZE because
that's implicitly done by pci_read_vpd().

Link: https://lore.kernel.org/r/ede36c16-5335-6867-43a1-293641348430@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c