projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libata: kill qc->nsect and cursect
[powerpc.git]
/
drivers
/
ata
/
libata-scsi.c
diff --git
a/drivers/ata/libata-scsi.c
b/drivers/ata/libata-scsi.c
index
6a99c08
..
9b5088a
100644
(file)
--- a/
drivers/ata/libata-scsi.c
+++ b/
drivers/ata/libata-scsi.c
@@
-1359,7
+1359,7
@@
static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc)
goto nothing_to_do;
qc->flags |= ATA_QCFLAG_IO;
goto nothing_to_do;
qc->flags |= ATA_QCFLAG_IO;
- qc->n
sect = n_block
;
+ qc->n
bytes = n_block * ATA_SECT_SIZE
;
rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags,
qc->tag);
rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags,
qc->tag);
@@
-2660,7
+2660,7
@@
static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc)
* TODO: find out if we need to do more here to
* cover scatter/gather case.
*/
* TODO: find out if we need to do more here to
* cover scatter/gather case.
*/
- qc->n
sect = scmd->request_bufflen / ATA_SECT_SIZE
;
+ qc->n
bytes = scmd->request_bufflen
;
/* request result TF */
qc->flags |= ATA_QCFLAG_RESULT_TF;
/* request result TF */
qc->flags |= ATA_QCFLAG_RESULT_TF;