diff options
author | 2024-10-22 12:11:37 +0300 | |
---|---|---|
committer | 2024-10-22 10:05:57 -0500 | |
commit | e2226dbc4a4919d9c8bd9293299b532090bdf020 (patch) | |
tree | b60480f44538984472d6f9dd42c9e416fc8a4ed1 /scripts/lib/kdoc/kdoc_files.py | |
parent | PCI: cpqphp: Remove unused struct ctrl_dbg.ctrl (diff) | |
download | wireguard-linux-e2226dbc4a4919d9c8bd9293299b532090bdf020.tar.xz wireguard-linux-e2226dbc4a4919d9c8bd9293299b532090bdf020.zip |
PCI: cpqphp: Fix PCIBIOS_* return value confusion
Code in and related to PCI_RefinedAccessConfig() has three types of return
type confusion:
- PCI_RefinedAccessConfig() tests pci_bus_read_config_dword() return value
against -1.
- PCI_RefinedAccessConfig() returns both -1 and PCIBIOS_* return codes.
- Callers of PCI_RefinedAccessConfig() only test for -1.
Make PCI_RefinedAccessConfig() return PCIBIOS_* codes consistently and
adapt callers accordingly.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/20241022091140.3504-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions