aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorEd Lin <ed.lin@promise.com>2006-09-27 07:23:33 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-10-01 16:05:38 -0400
commitf903d7b7a80b7c3103335d506533790a322da87b (patch)
tree4d508211d1644a92141b5500a64f3e817773235d /drivers/scsi
parent80c6e3c0b5eb855b69270658318f5ccf04d7b1ff (diff)
[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: Ed Lin <ed.lin@promise.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/stex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 3cf3106a29b8..cfb29716b5e2 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -181,7 +181,7 @@ struct req_msg {
181 u8 task_attr; 181 u8 task_attr;
182 u8 task_manage; 182 u8 task_manage;
183 u8 prd_entry; 183 u8 prd_entry;
184 u8 payload_sz; /* payload size in 4-byte */ 184 u8 payload_sz; /* payload size in 4-byte, not used */
185 u8 cdb[STEX_CDB_LENGTH]; 185 u8 cdb[STEX_CDB_LENGTH];
186 u8 variable[REQ_VARIABLE_LEN]; 186 u8 variable[REQ_VARIABLE_LEN];
187}; 187};
@@ -489,7 +489,6 @@ stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag)
489 req->tag = cpu_to_le16(tag); 489 req->tag = cpu_to_le16(tag);
490 req->task_attr = TASK_ATTRIBUTE_SIMPLE; 490 req->task_attr = TASK_ATTRIBUTE_SIMPLE;
491 req->task_manage = 0; /* not supported yet */ 491 req->task_manage = 0; /* not supported yet */
492 req->payload_sz = (u8)(sizeof(struct req_msg)/sizeof(u32));
493 492
494 hba->ccb[tag].req = req; 493 hba->ccb[tag].req = req;
495 hba->out_req_cnt++; 494 hba->out_req_cnt++;