diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-07 07:53:25 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-12-06 10:09:19 -0500 |
commit | 405d55c99da7a3045275fdb1a30614293a53c6e7 (patch) | |
tree | 7e2669fdb3125c0ee2e42a6c6a01bb8a612ef36f /drivers/vhost/tcm_vhost.c | |
parent | f9611c43ab0ddaf547b395c90fb842f55959334c (diff) |
tcm_vhost: remove unused variable in vhost_scsi_allocate_cmd()
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/tcm_vhost.c')
-rw-r--r-- | drivers/vhost/tcm_vhost.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index 33e5f90dfcf5..79e7e4d45eb2 100644 --- a/drivers/vhost/tcm_vhost.c +++ b/drivers/vhost/tcm_vhost.c | |||
@@ -414,14 +414,12 @@ static struct tcm_vhost_cmd *vhost_scsi_allocate_cmd( | |||
414 | { | 414 | { |
415 | struct tcm_vhost_cmd *tv_cmd; | 415 | struct tcm_vhost_cmd *tv_cmd; |
416 | struct tcm_vhost_nexus *tv_nexus; | 416 | struct tcm_vhost_nexus *tv_nexus; |
417 | struct se_session *se_sess; | ||
418 | 417 | ||
419 | tv_nexus = tv_tpg->tpg_nexus; | 418 | tv_nexus = tv_tpg->tpg_nexus; |
420 | if (!tv_nexus) { | 419 | if (!tv_nexus) { |
421 | pr_err("Unable to locate active struct tcm_vhost_nexus\n"); | 420 | pr_err("Unable to locate active struct tcm_vhost_nexus\n"); |
422 | return ERR_PTR(-EIO); | 421 | return ERR_PTR(-EIO); |
423 | } | 422 | } |
424 | se_sess = tv_nexus->tvn_se_sess; | ||
425 | 423 | ||
426 | tv_cmd = kzalloc(sizeof(struct tcm_vhost_cmd), GFP_ATOMIC); | 424 | tv_cmd = kzalloc(sizeof(struct tcm_vhost_cmd), GFP_ATOMIC); |
427 | if (!tv_cmd) { | 425 | if (!tv_cmd) { |