summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc
diff options
context:
space:
mode:
authorBart Van Assche2017-01-04 08:13:34 +0100
committerNicholas Bellinger2017-02-09 09:39:06 +0100
commit664a722b4f1bab63fee0193459036d1a95e19e99 (patch)
tree848b775d5479067b740b9ab9cc2d7e7631c62e3b /drivers/target/tcm_fc
parenttarget/cxgbit: Use T6 specific macro to set the force bit (diff)
downloadkernel-qcow2-linux-664a722b4f1bab63fee0193459036d1a95e19e99.tar.gz
kernel-qcow2-linux-664a722b4f1bab63fee0193459036d1a95e19e99.tar.xz
kernel-qcow2-linux-664a722b4f1bab63fee0193459036d1a95e19e99.zip
target/tcm_fc: Remove a set-but-not-used variable
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>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r--drivers/target/tcm_fc/tfc_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c
index 9af7842b8178..ec372860106f 100644
--- a/drivers/target/tcm_fc/tfc_cmd.c
+++ b/drivers/target/tcm_fc/tfc_cmd.c
@@ -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);