aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorLv Ruyi <[email protected]>2022-04-12 08:51:26 +0000
committerJakub Kicinski <[email protected]>2022-04-12 14:59:42 -0700
commitf45ba67eb74ab4b775616af731bdf8944afce3f1 (patch)
tree1864da2fbe83608c76fd4699d772b58349d17fd7 /tools/perf/scripts/python/check-perf-trace.py
parent2e5b3d4cb16e0be22f714475849bd14435b72583 (diff)
ixp4xx_eth: fix error check return value of platform_get_irq()
platform_get_irq() return negative value on failure, so null check of return value is incorrect. Fix it by comparing whether it is less than zero. Fixes: 9055a2f59162 ("ixp4xx_eth: make ptp support a platform driver") Reported-by: Zeal Robot <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions