Date: Mon, 2 Jun 2008 10:41:29 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 142746 for review Message-ID: <200806021041.m52AfTxu025021@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=142746 Change 142746 by andrew@andrew_bender on 2008/06/02 10:40:58 Fix an off by 1 error. The value returned by ffs starts at 1 not 0. Affected files ... .. //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#11 edit Differences ... ==== //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#11 (text+ko) ==== @@ -357,7 +357,7 @@ if (irq == 0) return (-1); - irq = ffs(irq); + irq = ffs(irq) - 1; /* Clear the sub irq pending bit */ bus_space_write_4(&s3c2xx0_bs_tag,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806021041.m52AfTxu025021>