Heiner Kallweit ef9e4005cb 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>
2021-01-27 10:41:59 -06:00
..
2020-12-25 20:17:40 -08:00
2020-08-05 18:23:14 -05:00
2020-12-15 15:11:09 -06:00
2020-08-05 18:24:16 -05:00
2020-08-05 18:24:22 -05:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2020-12-04 12:08:19 -06:00
2019-07-09 07:24:53 -05:00
2020-12-16 13:42:26 -08:00
2020-12-15 16:49:59 -08:00
2020-12-15 15:11:08 -06:00
2020-12-15 15:11:09 -06:00
2020-12-15 15:11:09 -06:00
2020-12-15 15:11:08 -06:00
2020-01-29 17:00:02 -06:00
2020-12-15 15:11:08 -06:00
2020-08-05 18:23:14 -05:00