fcst: Eliminate ft_cmd.serial

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4964 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-08-13 18:40:00 +00:00
parent 07569ed62d
commit c71c844c21
2 changed files with 0 additions and 3 deletions

View File

@@ -95,7 +95,6 @@ struct ft_tport {
* Commands
*/
struct ft_cmd {
int serial; /* order received, for debugging */
struct fc_seq *seq; /* sequence in exchange mgr */
struct fc_frame *req_frame; /* original request frame */
u32 write_data_len; /* data received from initiator */

View File

@@ -563,7 +563,6 @@ static void ft_recv_tm(struct scst_session *scst_sess,
*/
static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp)
{
static atomic_t serial;
struct fc_seq *sp;
struct scst_cmd *cmd;
struct ft_cmd *fcmd;
@@ -577,7 +576,6 @@ static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp)
fcmd = kzalloc(sizeof(*fcmd), GFP_ATOMIC);
if (!fcmd)
goto busy;
fcmd->serial = atomic_inc_return(&serial); /* debug only */
fcmd->max_payload = sess->max_payload;
fcmd->max_lso_payload = sess->max_lso_payload;
fcmd->req_frame = fp;