Re: [PATCH] linux/string.h: Introduce streq macro.

From: Thiago Farina
Date: Tue Apr 26 2011 - 16:33:30 EST


On Tue, Apr 26, 2011 at 5:27 PM, Davidlohr Bueso <dave@xxxxxxx> wrote:
> On Tue, 2011-04-26 at 15:49 -0300, Thiago Farina wrote:
>> This macro is arguably more readable than its variants:
>> - !strcmp(a, b)
>> - strcmp(a, b) == 0
>
> Anyone how is going to be reading kernel C code, can understand strcmp I
> think.
>
We all know that, but please see the previous discussion.

http://www.spinics.net/lists/kernel/msg1176975.html
http://www.spinics.net/lists/kernel/msg1176977.html

Best regards,

> Cheers,
> Davidlohr
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/