Skip to content
Commit f45ba67e authored by Lv Ruyi's avatar Lv Ruyi Committed by Jakub Kicinski
Browse files

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: 9055a2f5

 ("ixp4xx_eth: make ptp support a platform driver")
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarLv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220412085126.2532924-1-lv.ruyi@zte.com.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2e5b3d4c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment