Messages in this thread | | | Date | Sun, 30 Nov 2003 20:44:31 +0100 | From | Vojtech Pavlik <> | Subject | Re: Silicon Image 3112A SATA trouble |
| |
On Sun, Nov 30, 2003 at 01:31:35PM -0500, Jeff Garzik wrote:
> >Ah, my line wasn't completely clear (to say the least)... So to clear > >all doubts: > > > > if ((sector_count % 15 == 1) && (sector_count != 1)) > > errata path > > > >Agree? > > > Agreed. > > > The confusion here is most likely my fault, as my original post > intentionally inverted the logic for illustrative purposes (hah!)...
Yeah, and there was an error in the inversion, since if you invert the above statement, it looks like this:
if ((sector_count % 15 != 1) || (sector_count == 1)) ok path else errata path
Logic can be a bitch at times.
-- Vojtech Pavlik SuSE Labs, SuSE CR - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |