diff options
author | Ilpo Järvinen <[email protected]> | 2023-09-11 15:53:53 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-10-10 16:40:18 -0500 |
commit | 910ed628e511b8533e40b7e9119040c160848a57 (patch) | |
tree | 58b44f5601e07d9029a791d2648e92af2af09a13 /tools/perf/util/trace-event-scripting.c | |
parent | d15f18053e5cc5576af9e7eef0b2a91169b6326d (diff) |
PCI: xgene: Do PCI error check on own line & keep return value
Instead of an "if" condition with a line split, use the usual error
handling pattern with a separate variable to improve readability.
pci_generic_config_read32() already returns either PCIBIOS_SUCCESSFUL or
PCIBIOS_DEVICE_NOT_FOUND so it is enough to simply return its return value
when ret != PCIBIOS_SUCCESSFUL.
No functional changes intended.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions