diff options
author | Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> | 2013-04-17 05:15:29 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 15:28:15 -0400 |
commit | fbcd4836d20a33209843dcf84f83a33b97b74c9a (patch) | |
tree | fe6aa56313eceffac415c925f794862cdbc25082 | |
parent | 1bcb56190353f12aa99e455658760d25b07e4646 (diff) |
[SCSI] qla4xxx: Assign values using correct datatype
Assign values using correct datatype in function qla4xxx_copy_to_fwddb_param()
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 7f13caa8f502..d777332dbed8 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -2216,14 +2216,14 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess, | |||
2216 | fw_ddb_entry->iscsi_def_time2retain = cpu_to_le16(sess->time2retain); | 2216 | fw_ddb_entry->iscsi_def_time2retain = cpu_to_le16(sess->time2retain); |
2217 | fw_ddb_entry->tgt_portal_grp = cpu_to_le16(sess->tpgt); | 2217 | fw_ddb_entry->tgt_portal_grp = cpu_to_le16(sess->tpgt); |
2218 | fw_ddb_entry->mss = cpu_to_le16(conn->max_segment_size); | 2218 | fw_ddb_entry->mss = cpu_to_le16(conn->max_segment_size); |
2219 | fw_ddb_entry->tcp_xmt_wsf = cpu_to_le16(conn->tcp_xmit_wsf); | 2219 | fw_ddb_entry->tcp_xmt_wsf = (uint8_t) cpu_to_le32(conn->tcp_xmit_wsf); |
2220 | fw_ddb_entry->tcp_rcv_wsf = cpu_to_le16(conn->tcp_recv_wsf); | 2220 | fw_ddb_entry->tcp_rcv_wsf = (uint8_t) cpu_to_le32(conn->tcp_recv_wsf); |
2221 | fw_ddb_entry->ipv4_tos = conn->ipv4_tos; | 2221 | fw_ddb_entry->ipv4_tos = conn->ipv4_tos; |
2222 | fw_ddb_entry->ipv6_flow_lbl = cpu_to_le16(conn->ipv6_flow_label); | 2222 | fw_ddb_entry->ipv6_flow_lbl = cpu_to_le16(conn->ipv6_flow_label); |
2223 | fw_ddb_entry->ka_timeout = cpu_to_le16(conn->keepalive_timeout); | 2223 | fw_ddb_entry->ka_timeout = cpu_to_le16(conn->keepalive_timeout); |
2224 | fw_ddb_entry->lcl_port = cpu_to_le16(conn->local_port); | 2224 | fw_ddb_entry->lcl_port = cpu_to_le16(conn->local_port); |
2225 | fw_ddb_entry->stat_sn = cpu_to_le16(conn->statsn); | 2225 | fw_ddb_entry->stat_sn = cpu_to_le32(conn->statsn); |
2226 | fw_ddb_entry->exp_stat_sn = cpu_to_le16(conn->exp_statsn); | 2226 | fw_ddb_entry->exp_stat_sn = cpu_to_le32(conn->exp_statsn); |
2227 | fw_ddb_entry->ddb_link = cpu_to_le16(sess->discovery_parent_type); | 2227 | fw_ddb_entry->ddb_link = cpu_to_le16(sess->discovery_parent_type); |
2228 | fw_ddb_entry->chap_tbl_idx = cpu_to_le16(sess->chap_out_idx); | 2228 | fw_ddb_entry->chap_tbl_idx = cpu_to_le16(sess->chap_out_idx); |
2229 | fw_ddb_entry->tsid = cpu_to_le16(sess->tsid); | 2229 | fw_ddb_entry->tsid = cpu_to_le16(sess->tsid); |