Skip to content

Commit

Permalink
ata/sata_fsl: Kill ata_sg_is_last()
Browse files Browse the repository at this point in the history
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Li Yang authored and Jeff Garzik committed Nov 3, 2007
1 parent 79b3edc commit a2962dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/sata_fsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static unsigned int sata_fsl_fill_sg(struct ata_queued_cmd *qc, void *cmd_desc,
"s/g len unaligned : 0x%x\n", sg_len);

if ((num_prde == (SATA_FSL_MAX_PRD_DIRECT - 1)) &&
!ata_sg_is_last(sg, qc)) {
(qc->n_iter + 1 != qc->n_elem)) {
VPRINTK("setting indirect prde\n");
prd_ptr_to_indirect_ext = prd;
prd->dba = cpu_to_le32(indirect_ext_segment_paddr);
Expand Down

0 comments on commit a2962dd

Please sign in to comment.