Whamcloud - gitweb
LU-3068 build: fix 'incorrect expression' errors
authorSebastien Buisson <sebastien.buisson@bull.net>
Fri, 29 Mar 2013 13:30:48 +0000 (14:30 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 31 Mar 2013 21:02:29 +0000 (17:02 -0400)
commit0607e01af74a81d0fe12ceec79bd22810a5dfe92
tree98d8831b40575f75a461655eed7d4434ee6e1c09
parente27a011ac06d8844d9ddbfb93ecb9d0965dd9f6a
LU-3068 build: fix 'incorrect expression' errors

Fix 'program hangs' defects found by Coverity version 6.5.1:
Array compared against 0 (NO_EFFECT)
Comparing an array to null is not useful.
Copy-paste error (COPY_PASTE_ERROR)
This line looks like a copy-paste error.
Self assignment (NO_EFFECT)
Assignment operation has no effect.
Side effect in assertion (ASSERT_SIDE_EFFECT)
Assignment has a side effect. This code will work differently in a
non-debug build. You might have intended to use a comparison instead.
Wrong sizeof argument (SIZEOF_MISMATCH)
Passing argument is suspicious.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Icf6ea9632da6159beca0fd9fd3ff9bb57effc305
Reviewed-on: http://review.whamcloud.com/5887
Tested-by: Hudson
Reviewed-by: John Hammond <johnlockwoodhammond@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/fld/fld_index.c
lustre/llite/llite_lib.c
lustre/lmv/lmv_obd.c
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/mdd/mdd_lfsck.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/service.c
lustre/tests/openunlink.c