mirror_ubuntu-kernels/drivers/net/ethernet/xscale
Lv Ruyi f45ba67eb7 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: 9055a2f591 ("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>
2022-04-12 14:59:42 -07:00
..
ixp4xx_eth.c net: ixp4xx_eth: Drop platform data support 2022-02-12 18:20:03 +01:00
ixp46x_ts.h ixp4xx_eth: make ptp support a platform driver 2021-08-30 09:59:11 +01:00
Kconfig net: ixp4xx_eth: Drop platform data support 2022-02-12 18:20:03 +01:00
Makefile ixp4xx_eth: make ptp support a platform driver 2021-08-30 09:59:11 +01:00
ptp_ixp46x.c ixp4xx_eth: fix error check return value of platform_get_irq() 2022-04-12 14:59:42 -07:00