mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
libata: kill now unused n_iter and fix sata_fsl
qc->n_iter was used for libata's own sg walking before sg chaining
replaced it. During conversion, the field and its usage in sata_fsl
were left behind. Kill the filed and update sata_fsl.
tj: This was part of James's libata-use-block-layer-padding patch.
Separated out by me.
Signed-off-by: James Bottomley <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Cc: Li Yang <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
837f5f8fb9
commit
37198e3051
2 changed files with 2 additions and 4 deletions
|
|
@ -355,8 +355,8 @@ static unsigned int sata_fsl_fill_sg(struct ata_queued_cmd *qc, void *cmd_desc,
|
|||
ata_port_printk(qc->ap, KERN_ERR,
|
||||
"s/g len unaligned : 0x%x\n", sg_len);
|
||||
|
||||
if ((num_prde == (SATA_FSL_MAX_PRD_DIRECT - 1)) &&
|
||||
(qc->n_iter + 1 != qc->n_elem)) {
|
||||
if (num_prde == (SATA_FSL_MAX_PRD_DIRECT - 1) &&
|
||||
sg_next(sg) != NULL) {
|
||||
VPRINTK("setting indirect prde\n");
|
||||
prd_ptr_to_indirect_ext = prd;
|
||||
prd->dba = cpu_to_le32(indirect_ext_segment_paddr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue