fcst: Inline ft_send_xfer_rdy_off()

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-08-13 18:34:19 +00:00
parent c555196073
commit 54b4717ffa

View File

@@ -373,7 +373,7 @@ void ft_cmd_timeout(struct scst_cmd *cmd)
/*
* Send TX_RDY (transfer ready).
*/
static int ft_send_xfer_rdy_off(struct scst_cmd *cmd, u32 offset, u32 len)
int ft_send_xfer_rdy(struct scst_cmd *cmd)
{
struct ft_cmd *fcmd;
struct fc_frame *fp;
@@ -391,8 +391,8 @@ static int ft_send_xfer_rdy_off(struct scst_cmd *cmd, u32 offset, u32 len)
txrdy = fc_frame_payload_get(fp, sizeof(*txrdy));
memset(txrdy, 0, sizeof(*txrdy));
txrdy->ft_data_ro = htonl(offset);
txrdy->ft_burst_len = htonl(len);
txrdy->ft_data_ro = 0;
txrdy->ft_burst_len = htonl(scst_cmd_get_bufflen(cmd));
fcmd->seq = lport->tt.seq_start_next(fcmd->seq);
fc_fill_fc_hdr(fp, FC_RCTL_DD_DATA_DESC, ep->did, ep->sid, FC_TYPE_FCP,
@@ -401,14 +401,6 @@ static int ft_send_xfer_rdy_off(struct scst_cmd *cmd, u32 offset, u32 len)
return SCST_TGT_RES_SUCCESS;
}
/*
* Send TX_RDY (transfer ready).
*/
int ft_send_xfer_rdy(struct scst_cmd *cmd)
{
return ft_send_xfer_rdy_off(cmd, 0, scst_cmd_get_bufflen(cmd));
}
/*
* Send a FCP response including SCSI status and optional FCP rsp_code.
* status is SAM_STAT_GOOD (zero) if code is valid.