diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-05-10 06:47:15 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-10 07:46:37 -0400 |
commit | ff73b80d64bb2d3324ae85c3b7e953a0a17d7171 (patch) | |
tree | c503e8b3f6c5dae68bd24a1c3e558d94c1881b9e /drivers/pnp | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) |
PNP / resources: remove positive test on unsigned values
irq and dma are both resource_size_t (derived from phys_addr_t <-> unsigned)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index 01712cbfd92e..782e82289571 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c | |||
@@ -360,7 +360,7 @@ int pnp_check_irq(struct pnp_dev *dev, struct resource *res) | |||
360 | return 1; | 360 | return 1; |
361 | 361 | ||
362 | /* check if the resource is valid */ | 362 | /* check if the resource is valid */ |
363 | if (*irq < 0 || *irq > 15) | 363 | if (*irq > 15) |
364 | return 0; | 364 | return 0; |
365 | 365 | ||
366 | /* check if the resource is reserved */ | 366 | /* check if the resource is reserved */ |
@@ -424,7 +424,7 @@ int pnp_check_dma(struct pnp_dev *dev, struct resource *res) | |||
424 | return 1; | 424 | return 1; |
425 | 425 | ||
426 | /* check if the resource is valid */ | 426 | /* check if the resource is valid */ |
427 | if (*dma < 0 || *dma == 4 || *dma > 7) | 427 | if (*dma == 4 || *dma > 7) |
428 | return 0; | 428 | return 0; |
429 | 429 | ||
430 | /* check if the resource is reserved */ | 430 | /* check if the resource is reserved */ |