提交 664a722b 编写于 作者: B Bart Van Assche 提交者: Nicholas Bellinger

target/tcm_fc: Remove a set-but-not-used variable

This was detected by building with W=1.
Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 bdec5188
...@@ -83,14 +83,12 @@ void ft_dump_cmd(struct ft_cmd *cmd, const char *caller) ...@@ -83,14 +83,12 @@ void ft_dump_cmd(struct ft_cmd *cmd, const char *caller)
static void ft_free_cmd(struct ft_cmd *cmd) static void ft_free_cmd(struct ft_cmd *cmd)
{ {
struct fc_frame *fp; struct fc_frame *fp;
struct fc_lport *lport;
struct ft_sess *sess; struct ft_sess *sess;
if (!cmd) if (!cmd)
return; return;
sess = cmd->sess; sess = cmd->sess;
fp = cmd->req_frame; fp = cmd->req_frame;
lport = fr_dev(fp);
if (fr_seq(fp)) if (fr_seq(fp))
fc_seq_release(fr_seq(fp)); fc_seq_release(fr_seq(fp));
fc_frame_free(fp); fc_frame_free(fp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册