aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-09-11 15:53:52 +0300
committerBjorn Helgaas <[email protected]>2023-10-10 16:40:18 -0500
commitd15f18053e5cc5576af9e7eef0b2a91169b6326d (patch)
tree011dd3464d5b7d4e16b7f37e8c65d0ad5f7baf14 /tools/perf/util/trace-event-scripting.c
parentc28742447ca9879b52fbaf022ad844f0ffcd749c (diff)
PCI: Do error check on own line to split long "if" conditions
Placing PCI error code check inside "if" condition usually results in need to split lines. Combined with additional conditions the "if" condition becomes messy. Convert to the usual error handling pattern with an additional variable to improve code readability. In addition, reverse the logic in pci_find_vsec_capability() to get rid of &&. No functional changes intended. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> [bhelgaas: PCI_POSSIBLE_ERROR()] Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions