target: tcm_loop: Delete two unnecessary variable initialisations in tcm_loop_issue_tmr()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 11 Dec 2017 09:56:42 +0000 (10:56 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 12 Jan 2018 23:07:24 +0000 (15:07 -0800)
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>
drivers/target/loopback/tcm_loop.c

index d91109c..08dbf5b 100644 (file)
@@ -203,10 +203,10 @@ static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc)
 static int tcm_loop_issue_tmr(struct tcm_loop_tpg *tl_tpg,
                              u64 lun, int task, enum tcm_tmreq_table tmr)
 {
-       struct se_cmd *se_cmd = NULL;
+       struct se_cmd *se_cmd;
        struct se_session *se_sess;
        struct tcm_loop_nexus *tl_nexus;
-       struct tcm_loop_cmd *tl_cmd = NULL;
+       struct tcm_loop_cmd *tl_cmd;
        int ret = TMR_FUNCTION_FAILED, rc;
 
        /*