Remove some always-true comparisons.

Submitted by:	clang via rdivacky
This commit is contained in:
John Baldwin 2011-01-18 15:23:16 +00:00
parent 4a26285ea1
commit f0c734d5e3
2 changed files with 2 additions and 2 deletions

View File

@ -975,7 +975,7 @@ bt_find_probe_range(int ioport, int *port_index, int *max_port_index)
int
bt_iop_from_bio(isa_compat_io_t bio_index)
{
if (bio_index >= 0 && bio_index < BT_NUM_ISAPORTS)
if (bio_index < BT_NUM_ISAPORTS)
return (bt_board_ports[bio_index]);
return (-1);
}

View File

@ -364,7 +364,7 @@ cs_cs89x0_probe(device_t dev)
if (!error && !(sc->flags & CS_NO_IRQ)) {
if (chip_type == CS8900) {
if (irq >= 0 || irq < 16)
if (irq < 16)
irq = cs8900_irq2eeint[irq];
else
irq = 255;