Whamcloud - gitweb
LU-1445 lod: clean up lod_fld_lookup() return codes 27/12727/2
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 14 Nov 2014 21:06:34 +0000 (14:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Dec 2014 23:37:01 +0000 (23:37 +0000)
commit8b40f512cced1329da8913aea8c957d9d896127b
tree450618ae1e6e790e20be2cb56be3f66aba52a790
parentf0137d89fd40ae66aa1d3a180e4e5a6240009dcc
LU-1445 lod: clean up lod_fld_lookup() return codes

Don't return "rc" when it is known that this will always be "0".
This confuses the reader into thinking that this is an error path
when it is in fact a no-op shortcut that returns success.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ie4571226b3e90c866b958cf6ab65f6077abcab07
Reviewed-on: http://review.whamcloud.com/12727
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_dev.c