From f0d32375ed0ffea642a276f39edcacf99ef6b15e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 2 Apr 2012 16:56:22 +0000 Subject: [PATCH] fcst: Eliminate ft_cmd.xfer_rdy_len git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4180 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/fcst.h | 1 - fcst/ft_cmd.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/fcst/fcst.h b/fcst/fcst.h index 027831dd1..f25b78d1a 100644 --- a/fcst/fcst.h +++ b/fcst/fcst.h @@ -102,7 +102,6 @@ struct ft_cmd { struct fc_frame *req_frame; /* original request frame */ u32 write_data_len; /* data received from initiator */ u32 read_data_len; /* data sent to initiator */ - u32 xfer_rdy_len; /* max xfer ready offset */ u32 max_lso_payload; /* max offloaded (LSO) data payload */ u16 max_payload; /* max transmitted data payload */ struct scst_cmd *scst_cmd; diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index aca243ab1..c8943dfc8 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -380,8 +380,6 @@ static int ft_send_xfer_rdy_off(struct scst_cmd *cmd, u32 offset, u32 len) struct fc_exch *ep; fcmd = scst_cmd_get_tgt_priv(cmd); - if (fcmd->xfer_rdy_len < len + offset) - fcmd->xfer_rdy_len = len + offset; ep = fc_seq_exch(fcmd->seq); lport = ep->lp;