Whamcloud - gitweb
LU-3204 build: clean up unused variables and dead code 39/6139/14
authorDmitry Eremin <dmitry.eremin@intel.com>
Wed, 24 Apr 2013 13:25:14 +0000 (17:25 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Jul 2013 18:07:32 +0000 (18:07 +0000)
commitda09be15c52c15ab42aec658c848fa17453855a2
tree432b1ea91181ad4691de81cf75fcb613ec31647d
parente55470912ac80e3408cc24b8dd3e07683aa98257
LU-3204 build: clean up unused variables and dead code

Clean up the code from really unused variables and rearrange other
to remove SET_BUT_UNUSED and UNUSED macro usage if possible.

Clean up or comment on some dead code.

Removed never implemented suspend timeouts functionality from pinger.c
which was commented out since 2007 and going to be replaced by adaptive
timeouts. Also removed all references to this functionality from
ldlm_lockd.c, ldlm_request.c and import.c which actually nevers executes
or do nothing.

 pinger.c commit d2d56f38da01001c92a09afc6b52b5acbd9bc13c
 Author: tappro <tappro>
 Date:   Mon Jul 30 21:08:59 2007 +0000
    - make HEAD from b_post_cmd3

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: If7b6b3576d3ecc79948a7a1eb46a08c27a3bbc03
Reviewed-on: http://review.whamcloud.com/6139
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
24 files changed:
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/workitem.c
libsysio/src/access.c
libsysio/src/file_hack.c
lnet/lnet/api-ni.c
lnet/selftest/rpc.c
lnet/selftest/selftest.h
lnet/selftest/timer.c
lustre/include/linux/lustre_compat25.h
lustre/include/lustre_ha.h
lustre/include/lustre_lib.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/llite/dcache.c
lustre/llite/namei.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/niobuf.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpcd.c
lustre/utils/lctl.c
lustre/utils/obd.c