Obvious bug in /sys/i386/include/bus.h (was: bus_at386.h)
Joerg Sonnenberger
joerg at britannica.bec.de
Mon Jun 13 12:44:33 GMT 2005
On Mon, Jun 13, 2005 at 02:12:38PM +0200, Hans Petter Selasky wrote:
> This is equivalent to:
>
> while(--count)
> {
> /* I/O */
> }
>
> which is obviously wrong, because it doesn't check for count equal to
> zero.
Why do you think it is a bug? It is part of the interface contract and
useful to avoid an unnecessary check in 99% of the cases.
Joerg
More information about the freebsd-hackers
mailing list