99218cbf81
platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:
int irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
Fix the check of return value to catch errors correctly.
Fixes:
|
||
---|---|---|
.. | ||
82596.c | ||
Kconfig | ||
Makefile | ||
ether1.c | ||
ether1.h | ||
lasi_82596.c | ||
lib82596.c | ||
sni_82596.c | ||
sun3_82586.c | ||
sun3_82586.h |