summaryrefslogtreecommitdiff
path: root/j_type_handler.c
AgeCommit message (Expand)AuthorFilesLines
2010-11-10Initial import of nios2sim (http://nios2sim.googlecode.com/svn/trunk/ r16)Tobias Klauser1-0/+46
'>6space:mode:
authorChen Gang <gang.chen@asianux.com>2013-06-12 14:04:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-06-12 16:29:44 -0700
commit5402b8047b0d286b6501f9097891cbf1e06daa3a (patch)
tree9b656a3842c07b1407579a5096f500998ccf95ed /lib/mpi/mpicoder.c
parent637241a900cbd982f744d44646b48a273d609b34 (diff)
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>
Diffstat (limited to 'lib/mpi/mpicoder.c')