mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
scsi: libfc: Replace ->seq_start_next callback with function call
The ->seq_start_next callback only ever had one implementation, so call the function directly and drop the callback. Signed-off-by: Hannes Reinecke <[email protected]> Acked-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
768c72cc34
commit
c6865b30be
6 changed files with 9 additions and 17 deletions
|
|
@ -161,7 +161,7 @@ int ft_queue_status(struct se_cmd *se_cmd)
|
|||
/*
|
||||
* Send response.
|
||||
*/
|
||||
cmd->seq = lport->tt.seq_start_next(cmd->seq);
|
||||
cmd->seq = fc_seq_start_next(cmd->seq);
|
||||
fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATUS, ep->did, ep->sid, FC_TYPE_FCP,
|
||||
FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ, 0);
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ int ft_write_pending(struct se_cmd *se_cmd)
|
|||
memset(txrdy, 0, sizeof(*txrdy));
|
||||
txrdy->ft_burst_len = htonl(se_cmd->data_length);
|
||||
|
||||
cmd->seq = lport->tt.seq_start_next(cmd->seq);
|
||||
cmd->seq = fc_seq_start_next(cmd->seq);
|
||||
fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP,
|
||||
FC_FC_EX_CTX | FC_FC_END_SEQ | FC_FC_SEQ_INIT, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ int ft_queue_data_in(struct se_cmd *se_cmd)
|
|||
|
||||
ep = fc_seq_exch(cmd->seq);
|
||||
lport = ep->lp;
|
||||
cmd->seq = lport->tt.seq_start_next(cmd->seq);
|
||||
cmd->seq = fc_seq_start_next(cmd->seq);
|
||||
|
||||
remaining = se_cmd->data_length;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue