Skip to content

Commit

Permalink
[SCSI] stex: cancel unused field in struct req_msg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ed Lin authored and James Bottomley committed Oct 1, 2006
1 parent 80c6e3c commit f903d7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ struct req_msg {
u8 task_attr;
u8 task_manage;
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 variable[REQ_VARIABLE_LEN];
};
Expand Down Expand Up @@ -489,7 +489,6 @@ stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag)
req->tag = cpu_to_le16(tag);
req->task_attr = TASK_ATTRIBUTE_SIMPLE;
req->task_manage = 0; /* not supported yet */
req->payload_sz = (u8)(sizeof(struct req_msg)/sizeof(u32));

hba->ccb[tag].req = req;
hba->out_req_cnt++;
Expand Down

0 comments on commit f903d7b

Please sign in to comment.