From: Isaac Huang Date: Fri, 12 Sep 2014 03:24:42 +0000 (-0600) Subject: LU-5613 lustre: unused variable in tgt_brw_read() X-Git-Tag: 2.6.54~33 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F11888%2F2;p=fs%2Flustre-release.git 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 --- 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 */