Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2011 15:23:16 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217538 - in head/sys/dev: buslogic cs
Message-ID:  <201101181523.p0IFNGeB042079@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Jan 18 15:23:16 2011
New Revision: 217538
URL: http://svn.freebsd.org/changeset/base/217538

Log:
  Remove some always-true comparisons.
  
  Submitted by:	clang via rdivacky

Modified:
  head/sys/dev/buslogic/bt.c
  head/sys/dev/cs/if_cs.c

Modified: head/sys/dev/buslogic/bt.c
==============================================================================
--- head/sys/dev/buslogic/bt.c	Tue Jan 18 14:58:44 2011	(r217537)
+++ head/sys/dev/buslogic/bt.c	Tue Jan 18 15:23:16 2011	(r217538)
@@ -975,7 +975,7 @@ bt_find_probe_range(int ioport, int *por
 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);
 }

Modified: head/sys/dev/cs/if_cs.c
==============================================================================
--- head/sys/dev/cs/if_cs.c	Tue Jan 18 14:58:44 2011	(r217537)
+++ head/sys/dev/cs/if_cs.c	Tue Jan 18 15:23:16 2011	(r217538)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101181523.p0IFNGeB042079>