projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90ebc3
)
[SCSI] qla2xxx: fix sparse warning "large integer implicitly truncated to unsigned...
author
Armen Baloyan
<
[email protected]
>
Thu, 25 Apr 2013 05:29:18 +0000
(
01:29
-0400)
committer
James Bottomley
<
[email protected]
>
Thu, 2 May 2013 22:53:58 +0000
(15:53 -0700)
Found by 0 day test project
Reported-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Armen Baloyan <
[email protected]
>
Signed-off-by: Saurav Kashyap <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/qla2xxx/qla_mr.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_mr.c
b/drivers/scsi/qla2xxx/qla_mr.c
index 729b74389f83168544fb4ef95afe2e9464193ba6..937fed8cb0388550b619dfae667d452fa1c686a7 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_mr.c
+++ b/
drivers/scsi/qla2xxx/qla_mr.c
@@
-3003,12
+3003,10
@@
qlafx00_build_scsi_iocbs(srb_t *sp, struct cmd_type_7_fx00 *cmd_pkt,
/* Set transfer direction */
if (cmd->sc_data_direction == DMA_TO_DEVICE) {
- lcmd_pkt->cntrl_flags =
- __constant_cpu_to_le16(TMF_WRITE_DATA);
+ lcmd_pkt->cntrl_flags = TMF_WRITE_DATA;
vha->qla_stats.output_bytes += scsi_bufflen(cmd);
} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
- lcmd_pkt->cntrl_flags =
- __constant_cpu_to_le16(TMF_READ_DATA);
+ lcmd_pkt->cntrl_flags = TMF_READ_DATA;
vha->qla_stats.input_bytes += scsi_bufflen(cmd);
}