Commit f903d7b7 authored by Ed Lin's avatar Ed Lin Committed by James Bottomley

[SCSI] stex: cancel unused field in struct req_msg

The payload_sz field in struct req_msg is not big enough to indicate
the size of req_msg, as its type is u8.
It is confirmed that this field is not used by firmware, so cancel
it here.
Signed-off-by: default avatarEd Lin <ed.lin@promise.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 80c6e3c0
...@@ -181,7 +181,7 @@ struct req_msg { ...@@ -181,7 +181,7 @@ struct req_msg {
u8 task_attr; u8 task_attr;
u8 task_manage; u8 task_manage;
u8 prd_entry; u8 prd_entry;
u8 payload_sz; /* payload size in 4-byte */ u8 payload_sz; /* payload size in 4-byte, not used */
u8 cdb[STEX_CDB_LENGTH]; u8 cdb[STEX_CDB_LENGTH];
u8 variable[REQ_VARIABLE_LEN]; u8 variable[REQ_VARIABLE_LEN];
}; };
...@@ -489,7 +489,6 @@ stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag) ...@@ -489,7 +489,6 @@ stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag)
req->tag = cpu_to_le16(tag); req->tag = cpu_to_le16(tag);
req->task_attr = TASK_ATTRIBUTE_SIMPLE; req->task_attr = TASK_ATTRIBUTE_SIMPLE;
req->task_manage = 0; /* not supported yet */ req->task_manage = 0; /* not supported yet */
req->payload_sz = (u8)(sizeof(struct req_msg)/sizeof(u32));
hba->ccb[tag].req = req; hba->ccb[tag].req = req;
hba->out_req_cnt++; hba->out_req_cnt++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment