From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicholas A. Bellinger" Subject: Re: [PATCH -next] tcm_vhost: remove unused variable in vhost_scsi_allocate_cmd() Date: Thu, 08 Nov 2012 21:24:41 -0800 Message-ID: <1352438681.29589.514.camel@haakon2.linux-iscsi.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, mst@redhat.com, netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, yongjun_wei@trendmicro.com.cn, target-devel To: Wei Yongjun Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org Hello Wei, On Wed, 2012-11-07 at 20:53 +0800, Wei Yongjun wrote: > From: Wei Yongjun > > The variable se_sess is initialized but never used > otherwise, so remove the unused variable. > > dpatch engine is used to auto generate this patch. > (https://github.com/weiyj/dpatch) > > Signed-off-by: Wei Yongjun > --- > drivers/vhost/tcm_vhost.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c > index 23c138f..551fff0 100644 > --- a/drivers/vhost/tcm_vhost.c > +++ b/drivers/vhost/tcm_vhost.c > @@ -415,14 +415,12 @@ static struct tcm_vhost_cmd *vhost_scsi_allocate_cmd( > { > struct tcm_vhost_cmd *tv_cmd; > struct tcm_vhost_nexus *tv_nexus; > - struct se_session *se_sess; > > tv_nexus = tv_tpg->tpg_nexus; > if (!tv_nexus) { > pr_err("Unable to locate active struct tcm_vhost_nexus\n"); > return ERR_PTR(-EIO); > } > - se_sess = tv_nexus->tvn_se_sess; > > tv_cmd = kzalloc(sizeof(struct tcm_vhost_cmd), GFP_ATOMIC); > if (!tv_cmd) { > > -- Looks fine to me. Reviewed-by + Acked-by: Nicholas Bellinger Thanks!