From 0921e9c1da41ae24e188e53c8b7f9f036934f663 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 2 Apr 2011 17:49:41 +0000 Subject: [PATCH] Avoid that the compiler complains about unused variables. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3342 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index ea304ea3a..61194c35a 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2843,7 +2843,6 @@ free_mem: static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx) { - struct scst_cmd *scmnd; struct scatterlist *sg; scst_data_direction dir; @@ -2858,10 +2857,9 @@ static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch, ioctx->rdma_ius = NULL; if (ioctx->mapped_sg_count) { - scmnd = ioctx->scmnd; - EXTRACHECKS_BUG_ON(!scmnd); - EXTRACHECKS_WARN_ON(ioctx->scmnd != scmnd); - EXTRACHECKS_WARN_ON(ioctx != scst_cmd_get_tgt_priv(scmnd)); + EXTRACHECKS_BUG_ON(!ioctx->scmnd); + EXTRACHECKS_WARN_ON(ioctx + != scst_cmd_get_tgt_priv(ioctx->scmnd)); sg = ioctx->sg; EXTRACHECKS_WARN_ON(!sg); dir = ioctx->dir;