From 0b4b33592c09d37c0132d39c7823db78a3efcb3c Mon Sep 17 00:00:00 2001 From: Isaac Huang Date: Thu, 11 Sep 2014 21:24:42 -0600 Subject: [PATCH] LU-5613 lustre: unused variable in tgt_brw_read() Local variable niocount in tgt_brw_read() is assigned a value but never used again, and thus can be removed. Signed-off-by: Isaac Huang Change-Id: Ide032596e6877a7bc6d3cbd6eaf3cfd7e582eb23 Reviewed-on: http://review.whamcloud.com/11888 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- lustre/target/tgt_handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/target/tgt_handler.c b/lustre/target/tgt_handler.c index 8742c9a..3c42442 100644 --- a/lustre/target/tgt_handler.c +++ b/lustre/target/tgt_handler.c @@ -1654,8 +1654,7 @@ int tgt_brw_read(struct tgt_session_info *tsi) struct ost_body *body, *repbody; struct l_wait_info lwi; struct lustre_handle lockh = { 0 }; - int niocount, npages, nob = 0, rc, i; - int no_reply = 0; + int npages, nob = 0, rc, i, no_reply = 0; struct tgt_thread_big_cache *tbc = req->rq_svc_thread->t_data; ENTRY; @@ -1698,7 +1697,6 @@ int tgt_brw_read(struct tgt_session_info *tsi) ioo = req_capsule_client_get(tsi->tsi_pill, &RMF_OBD_IOOBJ); LASSERT(ioo != NULL); /* must exists after tgt_ost_body_unpack */ - niocount = ioo->ioo_bufcnt; remote_nb = req_capsule_client_get(&req->rq_pill, &RMF_NIOBUF_REMOTE); LASSERT(remote_nb != NULL); /* must exists after tgt_ost_body_unpack */ -- 1.8.3.1