From bd6ea41b5c8b2f18653fe4f1886c43765dd64523 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 18 Jan 2011 15:23:16 +0000 Subject: Remove some always-true comparisons. Submitted by: clang via rdivacky --- sys/dev/buslogic/bt.c | 2 +- sys/dev/cs/if_cs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index b7df4b4..88d152f 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -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); } diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 476b9dd..c264192 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -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; -- cgit v1.1