Remove some always-true comparisons.
Submitted by: clang via rdivacky
This commit is contained in:
parent
4a26285ea1
commit
f0c734d5e3
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user