Commit a7fbf3a4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kamal Mostafa

tcm_fc: missing curly braces in ft_invl_hw_context()

commit d556546e upstream.

This patch adds a missing set of conditional check braces in
ft_invl_hw_context() originally introduced by commit dcd998cc
when handling DDP failures in ft_recv_write_data() code.

 commit dcd998cc
 Author: Kiran Patil <kiran.patil@intel.com>
 Date:   Wed Aug 3 09:20:01 2011 +0000

    tcm_fc: Handle DDP/SW fc_frame_payload_get failures in ft_recv_write_data
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 435ef3e2
...@@ -346,7 +346,7 @@ void ft_invl_hw_context(struct ft_cmd *cmd) ...@@ -346,7 +346,7 @@ void ft_invl_hw_context(struct ft_cmd *cmd)
ep = fc_seq_exch(seq); ep = fc_seq_exch(seq);
if (ep) { if (ep) {
lport = ep->lp; lport = ep->lp;
if (lport && (ep->xid <= lport->lro_xid)) if (lport && (ep->xid <= lport->lro_xid)) {
/* /*
* "ddp_done" trigger invalidation of HW * "ddp_done" trigger invalidation of HW
* specific DDP context * specific DDP context
...@@ -361,6 +361,7 @@ void ft_invl_hw_context(struct ft_cmd *cmd) ...@@ -361,6 +361,7 @@ void ft_invl_hw_context(struct ft_cmd *cmd)
* identified using ep->xid) * identified using ep->xid)
*/ */
cmd->was_ddp_setup = 0; cmd->was_ddp_setup = 0;
}
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment