Subject: Re: CVS commit: src/sys/dev/ic
To: None <christos@zoulas.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 09/04/2006 04:10:43
christos@zoulas.com wrote:

> | > Modified Files:
> | > 	src/sys/dev/ic: mb89352.c
> | > 
> | > Log Message:
> | > comment out impossible code
> | 
> | Isn't it better to make sc_dleft signed?
> | (maybe this code should be wrapped by #ifdef DIAGNOSTIC anyway)
> 
> I think that keeping things unsigned makes the code simpler. Having
> the checks always in the kernel prevents buffer overflows and crashes.

But you #if 0'ed out a check ("data xfered more than requested bytes")
which didn't work as intended because sc_dleft was unsigned.
---
Izumi Tsutsui