Whamcloud - gitweb
LU-5200 llite: Cmp of unsigned value against 0 is always true 17/11217/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 24 Jul 2014 17:39:17 +0000 (21:39 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 8 Sep 2014 04:05:43 +0000 (04:05 +0000)
commite2ec8c2bb1829afab1ee62c76a45e3aab2023bce
tree2962d769cf36d37c1e9ce7b50cc136652f608d15
parenta9ab51fcbd1b4dbe4c23ff774782d598f6f91ffa
LU-5200 llite: Cmp of unsigned value against 0 is always true

Comparison of unsigned value against 0 is always true.
desc->bd_iov_count declared as int and atomic_sub_return() have
first argument int also.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I89cedc4991d1a117f824ce6b5d8cf045595fdc0f
Reviewed-on: http://review.whamcloud.com/11217
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/lproc_llite.c
lustre/osc/osc_page.c