diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-11-26 12:00:43 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-12-03 18:01:23 -0500 |
commit | d0634c4aea0b80447cbdc4c0db285004b860c455 (patch) | |
tree | 5d723e58b0feb11d049b7398e4c3f4600be01d9c /drivers/ata | |
parent | e78db4dfb1355a895f7ea50133b702b55b8ed184 (diff) | |
download | linux-d0634c4aea0b80447cbdc4c0db285004b860c455.tar.gz linux-d0634c4aea0b80447cbdc4c0db285004b860c455.tar.bz2 linux-d0634c4aea0b80447cbdc4c0db285004b860c455.zip |
libata: Clarify ata_set_lba_range_entries function
ata_set_lba_range_entries used the variable max for two different things
which was confusing. Make the function take a buffer size in bytes as
argument and return the used buffer size upon completion.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index e1e186b9dfcc..62e6b9ea96af 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -2972,7 +2972,7 @@ static unsigned int ata_scsi_write_same_xlat(struct ata_queued_cmd *qc) goto invalid_fld; buf = page_address(sg_page(scsi_sglist(scmd))); - size = ata_set_lba_range_entries(buf, 512 / 8, block, n_block); + size = ata_set_lba_range_entries(buf, 512, block, n_block); tf->protocol = ATA_PROT_DMA; tf->hob_feature = 0; |