mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-01 05:14:41 +00:00
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 | ||
| ether1.c | ||
| ether1.h | ||
| Kconfig | ||
| lasi_82596.c | ||
| lib82596.c | ||
| Makefile | ||
| sni_82596.c | ||
| sun3_82586.c | ||
| sun3_82586.h | ||