aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-05-31 19:17:07 +0300
committerDavid S. Miller <[email protected]>2021-06-01 15:16:33 -0700
commit37d4b3fdc55dbeb32e3ed4d76d36d8ea4c1c479d (patch)
tree7ddba133ddd4ee016be01a147eb66dce40661799 /tools/perf/scripts/python/check-perf-trace.py
parentb0f6c9ac8088a01cd9b6bfba8ede22f1bd0ff72f (diff)
net: enetc: catch negative return code from enetc_pf_to_port()
After the refactoring introduced in commit 87614b931c24 ("net: enetc: create a common enetc_pf_to_port helper"), enetc_pf_to_port was coded up to return -1 in case the passed PCIe device does not have a recognized BDF. Make sure the -1 value is checked by the callers, to appease static checkers. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions