target/tcm_fc: Remove a set-but-not-used variable
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 4 Jan 2017 07:13:34 +0000 (08:13 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 9 Feb 2017 08:39:06 +0000 (00:39 -0800)
This was detected by building with W=1.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_cmd.c

index 9af7842b8178e97c66fb8935c0891301b288a78d..ec372860106f1219ec4fe1a9d5e156ae0475a551 100644 (file)
@@ -83,14 +83,12 @@ void ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
 static void ft_free_cmd(struct ft_cmd *cmd)
 {
        struct fc_frame *fp;
-       struct fc_lport *lport;
        struct ft_sess *sess;
 
        if (!cmd)
                return;
        sess = cmd->sess;
        fp = cmd->req_frame;
-       lport = fr_dev(fp);
        if (fr_seq(fp))
                fc_seq_release(fr_seq(fp));
        fc_frame_free(fp);