diff options
Diffstat (limited to 'drivers/ata/sata_qstor.c')
-rw-r--r-- | drivers/ata/sata_qstor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 710909df4eaf..0292a79f9747 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c | |||
@@ -325,7 +325,7 @@ static void qs_qc_prep(struct ata_queued_cmd *qc) | |||
325 | /* host control block (HCB) */ | 325 | /* host control block (HCB) */ |
326 | buf[ 0] = QS_HCB_HDR; | 326 | buf[ 0] = QS_HCB_HDR; |
327 | buf[ 1] = hflags; | 327 | buf[ 1] = hflags; |
328 | *(__le32 *)(&buf[ 4]) = cpu_to_le32(qc->nsect * ATA_SECT_SIZE); | 328 | *(__le32 *)(&buf[ 4]) = cpu_to_le32(qc->nbytes); |
329 | *(__le32 *)(&buf[ 8]) = cpu_to_le32(nelem); | 329 | *(__le32 *)(&buf[ 8]) = cpu_to_le32(nelem); |
330 | addr = ((u64)pp->pkt_dma) + QS_CPB_BYTES; | 330 | addr = ((u64)pp->pkt_dma) + QS_CPB_BYTES; |
331 | *(__le64 *)(&buf[16]) = cpu_to_le64(addr); | 331 | *(__le64 *)(&buf[16]) = cpu_to_le64(addr); |