summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-12-11 04:56:42 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2018-01-12 18:07:24 -0500
commit7deeceb4c7c53efeba54fbc7aab9e6b393f5d984 (patch)
tree9830af972842a0ba0e40f148d6fc8ecc780b6912 /drivers/target
parentc8d1f4b76be3361b881bd88b0ebf16b306a4cab8 (diff)
target: tcm_loop: Delete two unnecessary variable initialisations in tcm_loop_issue_tmr()
The variables "se_cmd" and "tl_cmd" will eventually be set to appropriate pointers a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/loopback/tcm_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index d91109c1c4ae..08dbf5b4ff15 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -203,10 +203,10 @@ static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc)
203static int tcm_loop_issue_tmr(struct tcm_loop_tpg *tl_tpg, 203static int tcm_loop_issue_tmr(struct tcm_loop_tpg *tl_tpg,
204 u64 lun, int task, enum tcm_tmreq_table tmr) 204 u64 lun, int task, enum tcm_tmreq_table tmr)
205{ 205{
206 struct se_cmd *se_cmd = NULL; 206 struct se_cmd *se_cmd;
207 struct se_session *se_sess; 207 struct se_session *se_sess;
208 struct tcm_loop_nexus *tl_nexus; 208 struct tcm_loop_nexus *tl_nexus;
209 struct tcm_loop_cmd *tl_cmd = NULL; 209 struct tcm_loop_cmd *tl_cmd;
210 int ret = TMR_FUNCTION_FAILED, rc; 210 int ret = TMR_FUNCTION_FAILED, rc;
211 211
212 /* 212 /*