diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-01-24 16:39:32 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-01-27 10:41:59 -0600 |
commit | ef9e4005cbaf022c6251263aa27836acccaef65d (patch) | |
tree | 5196328b517177c35f1677affbacf26e7307ff87 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff) |
PCI: Align checking of syscall user config accessors
After 34e3207205ef ("PCI: handle positive error codes"),
pci_user_read_config_*() and pci_user_write_config_*() return 0 or negative
errno values, not PCIBIOS_* values like PCIBIOS_SUCCESSFUL or
PCIBIOS_BAD_REGISTER_NUMBER.
Remove comparisons with PCIBIOS_SUCCESSFUL and check only for non-zero. It
happens that PCIBIOS_SUCCESSFUL is zero, so this is not a functional
change, but it aligns this code with the user accessors.
[bhelgaas: commit log]
Fixes: 34e3207205ef ("PCI: handle positive error codes")
Link: https://lore.kernel.org/r/f1220314-e518-1e18-bf94-8e6f8c703758@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions