diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2010-02-17 05:18:55 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-17 18:46:28 -0500 |
commit | 5bdecd2248d4af6f3b311b4d8ca7f3f5f83a7191 (patch) | |
tree | 852b9183b0dd24b7426994fc5cdeb681d7938cb7 /drivers/s390 | |
parent | d21e9daa63e009ce5b87bbcaa6d11ce48e07bbbe (diff) |
[SCSI] zfcp: Remove duplicate assignment of req_seq_no
zfcp_fsf_req_create assigns the same value twice to req_seq_no.
Remove one assignment and move the req_id and seq_no assignments to
one place.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index e5ff45fbb8ae..69393b8c50d7 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -741,6 +741,7 @@ static struct zfcp_fsf_req *zfcp_fsf_req_create(struct zfcp_qdio *qdio, | |||
741 | return ERR_PTR(-ENOMEM); | 741 | return ERR_PTR(-ENOMEM); |
742 | } | 742 | } |
743 | 743 | ||
744 | req->seq_no = adapter->fsf_req_seq_no; | ||
744 | req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no; | 745 | req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no; |
745 | req->qtcb->prefix.req_id = req->req_id; | 746 | req->qtcb->prefix.req_id = req->req_id; |
746 | req->qtcb->prefix.ulp_info = 26; | 747 | req->qtcb->prefix.ulp_info = 26; |
@@ -748,8 +749,6 @@ static struct zfcp_fsf_req *zfcp_fsf_req_create(struct zfcp_qdio *qdio, | |||
748 | req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION; | 749 | req->qtcb->prefix.qtcb_version = FSF_QTCB_CURRENT_VERSION; |
749 | req->qtcb->header.req_handle = req->req_id; | 750 | req->qtcb->header.req_handle = req->req_id; |
750 | req->qtcb->header.fsf_command = req->fsf_command; | 751 | req->qtcb->header.fsf_command = req->fsf_command; |
751 | req->seq_no = adapter->fsf_req_seq_no; | ||
752 | req->qtcb->prefix.req_seq_no = adapter->fsf_req_seq_no; | ||
753 | sbale[1].addr = (void *) req->qtcb; | 752 | sbale[1].addr = (void *) req->qtcb; |
754 | sbale[1].length = sizeof(struct fsf_qtcb); | 753 | sbale[1].length = sizeof(struct fsf_qtcb); |
755 | } | 754 | } |