Re: [PATCH] lib/mpi/mpicoder.c: looping issue, need stop when equalto zero, found by 'EXTRA_FLAGS=-W'.

From: Chen Gang
Date: Mon May 20 2013 - 06:26:57 EST


On 05/20/2013 06:13 PM, David Howells wrote:
> Chen Gang <gang.chen@xxxxxxxxxxx> wrote:
>
>> > For 'while' looping, need stop when 'nbytes == 0', or will cause issue.
>> > ('nbytes' is size_t which is always bigger or equal than zero).
>> >
>> > The related warning: (with EXTRA_CFLAGS=-W)
>> > lib/mpi/mpicoder.c:40:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
> Acked-by: David Howells <dhowells@xxxxxxxxxx>
>
>

Thank you very much.


Thanks.
--
Chen Gang

Asianux Corporation
--
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/