From patchwork Wed Nov 7 12:53:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 1710501 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DF0FA3FD2B for ; Wed, 7 Nov 2012 12:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973Ab2KGMx1 (ORCPT ); Wed, 7 Nov 2012 07:53:27 -0500 Received: from mail-qa0-f46.google.com ([209.85.216.46]:48605 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099Ab2KGMx0 (ORCPT ); Wed, 7 Nov 2012 07:53:26 -0500 Received: by mail-qa0-f46.google.com with SMTP id n12so418646qat.19 for ; Wed, 07 Nov 2012 04:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=2FB142sUr3Ck07vbLGTW92yJIY8hSegwwsp1FNke7UQ=; b=CedRlMnyZfZbYajg2IOiBpBdwVegKMcqONVNNXywseo0IcBaCKkz5jT1ocxauiBGlK nXerr99mfSFoAP6KmSrunu9gaVqhINVgXaLYyt68NUotbWc9dbmsCNzoQRvkf1wBCY5v tgOChDxcLtxFHF4ET1Ucv7DxZhLOvU7F/2oEc4cTjPhalvfUt82fsNcjR996ioBKD3zD pBtL4tWe3N5V6a2uf+Pl0n50u0ZFffCBguUa7Uz+9GZCd35EOadQqniwmTHUK412fBTc 7msmRSRRt4bNmsIgk1snQ7we8oanSud6rtPlaokfLd0HJbwgEdSoa/tqWH9AkilIB6/l Zu5g== MIME-Version: 1.0 Received: by 10.49.104.3 with SMTP id ga3mr7762930qeb.11.1352292805304; Wed, 07 Nov 2012 04:53:25 -0800 (PST) Received: by 10.229.207.197 with HTTP; Wed, 7 Nov 2012 04:53:25 -0800 (PST) Date: Wed, 7 Nov 2012 20:53:25 +0800 Message-ID: Subject: [PATCH -next] tcm_vhost: remove unused variable in vhost_scsi_allocate_cmd() From: Wei Yongjun To: mst@redhat.com Cc: yongjun_wei@trendmicro.com.cn, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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) {