diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2013-12-16 06:49:53 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 13:19:16 -0400 |
commit | 8f10872a95c3f6cc3ec1387c4b274ed872a2d16e (patch) | |
tree | 2f4b4611463d874c6b40eb4395848d573113bfff | |
parent | 4820002dadff0d6f33bd968e1e94efb12436a17d (diff) |
[SCSI] qla4xxx: Fix sparse warnings
Fix following sparse warnings:-
drivers/scsi/qla4xxx/ql4_os.c:2109:33: warning: cast truncates bits from constant value (ffff7fff becomes 7fff)
drivers/scsi/qla4xxx/ql4_os.c:2306:33: warning: cast truncates bits from constant value (ffff7fff becomes 7fff)
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 1859f0dfa1f9..459b9f7186fd 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -2109,7 +2109,8 @@ static void qla4xxx_set_ipv6(struct scsi_qla_host *ha, | |||
2109 | cpu_to_le16(IPV6_TCPOPT_DELAYED_ACK_DISABLE); | 2109 | cpu_to_le16(IPV6_TCPOPT_DELAYED_ACK_DISABLE); |
2110 | else | 2110 | else |
2111 | init_fw_cb->ipv6_tcp_opts &= | 2111 | init_fw_cb->ipv6_tcp_opts &= |
2112 | cpu_to_le16(~IPV6_TCPOPT_DELAYED_ACK_DISABLE); | 2112 | cpu_to_le16(~IPV6_TCPOPT_DELAYED_ACK_DISABLE & |
2113 | 0xFFFF); | ||
2113 | break; | 2114 | break; |
2114 | case ISCSI_NET_PARAM_TCP_NAGLE_DISABLE: | 2115 | case ISCSI_NET_PARAM_TCP_NAGLE_DISABLE: |
2115 | if (iface_param->iface_num & 0x1) | 2116 | if (iface_param->iface_num & 0x1) |
@@ -2306,7 +2307,8 @@ static void qla4xxx_set_ipv4(struct scsi_qla_host *ha, | |||
2306 | cpu_to_le16(TCPOPT_DELAYED_ACK_DISABLE); | 2307 | cpu_to_le16(TCPOPT_DELAYED_ACK_DISABLE); |
2307 | else | 2308 | else |
2308 | init_fw_cb->ipv4_tcp_opts &= | 2309 | init_fw_cb->ipv4_tcp_opts &= |
2309 | cpu_to_le16(~TCPOPT_DELAYED_ACK_DISABLE); | 2310 | cpu_to_le16(~TCPOPT_DELAYED_ACK_DISABLE & |
2311 | 0xFFFF); | ||
2310 | break; | 2312 | break; |
2311 | case ISCSI_NET_PARAM_TCP_NAGLE_DISABLE: | 2313 | case ISCSI_NET_PARAM_TCP_NAGLE_DISABLE: |
2312 | if (iface_param->iface_num & 0x1) | 2314 | if (iface_param->iface_num & 0x1) |