lkml.org 
[lkml]   [2002]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.138 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site