Tejun Heo cc1887f3d8 [PATCH] libata: fix qc->n_elem == 0 case handling in ata_qc_next_sg
This patch makes ata_for_each_sg() start with pad_sgent when
qc->n_elem is zero.  Previously, ata_for_each_sg() unconditionally
started with qc->__sg, handling the first sg to fill_sg() routines
even when the entry was invalid.  And while at it, unwind ?: in
ata_qc_next_sg() into if statement.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2006-02-20 16:48:18 -05:00
..
2006-01-31 03:25:09 -05:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-02-15 15:32:22 -08:00
2006-01-06 08:33:29 -08:00