On Jul 27 2007 16:07, Alexey Dobriyan wrote:
>On 7/27/07, Jan Engelhardt <[email protected]> wrote:
>> On Jul 27 2007 10:59, Al Viro wrote:
>> >On Fri, Jul 27, 2007 at 11:44:07AM +0200, Yoann Padioleau wrote:
>> >> buf = alloc_safe_buffer(device_info, ptr, size, dir);
>> >> - if (buf == 0) {
>> >> + if (buf == NULL) {
>> >
>> > if (!buf)
>> >surely...
>>
>> Makes it look like it's used as a bool.
>
>bool variables are rarely named buf, so no.
Whatever. Java is good in one point: the ! operator requires a bool.
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]