diff options
author | Hannes Reinecke <hare@suse.de> | 2016-10-18 04:01:50 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 17:29:56 -0500 |
commit | 768c72cc34a26ed1c41c9af89886f91af08ded8c (patch) | |
tree | 40e53028cd2c5eb90634b61a582364ecf7202500 /drivers/target/tcm_fc | |
parent | 0ebaed17febadeda0f4da21da2c0f295f46348a4 (diff) |
scsi: libfc: Replace ->exch_done callback with function call
The ->exch_done callback only ever had one implementation,
so we can as well call it directly and drop the callback.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 42f09ca5db1a..7f6562638abf 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -177,7 +177,7 @@ int ft_queue_status(struct se_cmd *se_cmd) | |||
177 | se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; | 177 | se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; |
178 | return -ENOMEM; | 178 | return -ENOMEM; |
179 | } | 179 | } |
180 | lport->tt.exch_done(cmd->seq); | 180 | fc_exch_done(cmd->seq); |
181 | /* | 181 | /* |
182 | * Drop the extra ACK_KREF reference taken by target_submit_cmd() | 182 | * Drop the extra ACK_KREF reference taken by target_submit_cmd() |
183 | * ahead of ft_check_stop_free() -> transport_generic_free_cmd() | 183 | * ahead of ft_check_stop_free() -> transport_generic_free_cmd() |
@@ -324,7 +324,7 @@ static void ft_send_resp_status(struct fc_lport *lport, | |||
324 | sp = fr_seq(fp); | 324 | sp = fr_seq(fp); |
325 | if (sp) { | 325 | if (sp) { |
326 | fc_seq_send(lport, sp, fp); | 326 | fc_seq_send(lport, sp, fp); |
327 | lport->tt.exch_done(sp); | 327 | fc_exch_done(sp); |
328 | } else { | 328 | } else { |
329 | lport->tt.frame_send(lport, fp); | 329 | lport->tt.frame_send(lport, fp); |
330 | } | 330 | } |