Messages in this thread | | | Date | Fri, 8 Nov 2002 12:10:14 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [TRIVIAL] Re: UP went into unexpected trashing |
| |
On Sat, 9 Nov 2002, Dipankar Sarma wrote: > > Or add a check in there. I can't figure out a way to avoid the extra > conditional branch anyway :)
I'd actually rather change the calling convention, and say that the only valid test is for testing the return value "being in range".
And it's not strictly even a calling convention _change_ - it's always been that way. See the original user, ie the minix filesystem:
if ((j = minix_find_first_zero_bit(bh->b_data, 8192)) < 8192) { ...
and it's really a documentation fix/update to just tell people about this.
Linus
- 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/
| |