Chen Gang 5402b8047b lib/mpi/mpicoder.c: looping issue, need stop when equal to zero, found by 'EXTRA_FLAGS=-W'.
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]

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-06-12 16:29:44 -07:00
..
2013-03-13 15:21:48 -07:00
2013-04-30 17:04:09 -07:00
2013-02-27 19:10:09 -08:00
2012-09-30 18:02:20 -07:00
2012-10-06 03:04:57 +09:00
2013-01-17 12:19:09 -08:00
2013-04-29 18:28:41 -07:00
2012-10-09 16:22:40 +09:00
2013-03-02 08:31:39 -08:00
2013-05-07 16:09:00 -07:00
2012-12-17 17:15:22 -08:00
2012-03-28 15:58:21 -07:00
2013-05-23 09:17:11 -07:00
2012-07-30 17:25:16 -07:00
2013-04-29 18:28:42 -07:00