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
This commit is contained in:
Bart Van Assche
2011-04-02 17:49:41 +00:00
parent c0dc93c198
commit 0921e9c1da

View File

@@ -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;