diff --git a/fcst/fcst.h b/fcst/fcst.h index 3f41234bb..4ff9d1ec1 100644 --- a/fcst/fcst.h +++ b/fcst/fcst.h @@ -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 */ diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index 9e6610a1d..eb3e70098 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -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;