From 8aacdf09efc17e72067af9e9abd3fbf21525db56 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 5 Jun 2011 09:56:58 +0000 Subject: [PATCH] ib_srpt: Remove an unused variable git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3540 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 6 +----- srpt/src/ib_srpt.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 9c7023a7b..ddd4ba153 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2144,8 +2144,7 @@ static void srpt_release_channel_work(struct work_struct *w) #else ch = container_of(w, struct srpt_rdma_ch, release_work); #endif - TRACE_DBG("ch = %p; ch->scst_sess = %p; release_done = %p", ch, - ch->scst_sess, ch->release_done); + TRACE_DBG("ch = %p; ch->scst_sess = %p", ch, ch->scst_sess); WARN_ON(ch->state != CH_RELEASING); sdev = ch->sport->sdev; @@ -2175,9 +2174,6 @@ static void srpt_release_channel_work(struct work_struct *w) ib_destroy_cm_id(ch->cm_id); - if (ch->release_done) - complete(ch->release_done); - wake_up(&sdev->ch_releaseQ); kfree(ch); diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index 684109289..290a20264 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -292,7 +292,6 @@ enum rdma_ch_state { * @scst_sess: SCST session information associated with this SRP channel. * @sess_name: SCST session name. * @release_work: - * @release_done: */ struct srpt_rdma_ch { struct task_struct *thread; @@ -318,7 +317,6 @@ struct srpt_rdma_ch { struct scst_session *scst_sess; u8 sess_name[36]; struct work_struct release_work; - struct completion *release_done; }; /**