svn commit: r217538 - in head/sys/dev: buslogic cs

Peter Jeremy peterjeremy at acm.org
Wed Jan 19 08:00:27 UTC 2011


On 2011-Jan-18 15:23:16 +0000, John Baldwin <jhb at FreeBSD.org> wrote:
>Log:
>  Remove some always-true comparisons.
...
>--- 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;

Irrespective of the signedness or otherwise of "irq", I'm fairly
certain that '||' should have been '&&' before.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20110119/ad77c4f7/attachment.pgp


More information about the svn-src-all mailing list