Since 104daa71b396 ("PCI: Determine actual VPD size on first access") there's nothing that keeps us from using a static attribute. This allows to significantly simplify the code. Heiner Kallweit (2): PCI/VPD: Remove dead code from sysfs access functions PCI/VPD: Improve handling binary sysfs attribute drivers/pci/vpd.c | 56 ++++++++++------------------------------------- 1 file changed, 11 insertions(+), 45 deletions(-) -- 2.30.0