diff options
author | Colin Ian King <[email protected]> | 2019-11-22 13:13:54 +0000 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2019-11-22 14:21:27 +0100 |
commit | d60229d84846a8399257006af9c5444599f64361 (patch) | |
tree | b62831a16ab6d16bbea898a4e7f4b2a6dda37381 /lib/mpi/mpiutil.c | |
parent | 9435f2bb66874a0c4dd25e7c978957a7ca2c93b1 (diff) |
ALSA: cs4236: fix error return comparison of an unsigned integer
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: a9824c868a2c ("[ALSA] Add CS4232 PnP BIOS support")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions