diff options
author | Lv Ruyi <lv.ruyi@zte.com.cn> | 2022-04-12 11:51:26 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-13 00:59:42 +0300 |
commit | f45ba67eb74ab4b775616af731bdf8944afce3f1 (patch) | |
tree | 1864da2fbe83608c76fd4699d772b58349d17fd7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2e5b3d4cb16e0be22f714475849bd14435b72583 (diff) | |
download | linux-f45ba67eb74ab4b775616af731bdf8944afce3f1.tar.xz |
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 <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220412085126.2532924-1-lv.ruyi@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions