The return from pnp_irq is an unsigned integer type resource_size_t
and hence the error check for a positive non-error code is always
going to be true. A check for a non-failure return from pnp_irq
should in fact be for (resource_size_t)-1 rather than >= 0.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes:
|
||
|---|---|---|
| .. | ||
| ad1816a | ||
| ad1848 | ||
| cs423x | ||
| es1688 | ||
| galaxy | ||
| gus | ||
| msnd | ||
| opti9xx | ||
| sb | ||
| wavefront | ||
| wss | ||
| adlib.c | ||
| als100.c | ||
| azt2320.c | ||
| cmi8328.c | ||
| cmi8330.c | ||
| es18xx.c | ||
| Kconfig | ||
| Makefile | ||
| opl3sa2.c | ||
| sc6000.c | ||
| sscape.c | ||