Signed-off-by: Saeed Bishara <[EMAIL PROTECTED]> --- DMA-mapping.txt | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
--- a/Documentation/DMA-mapping.txt 2007-08-08 12:51:07.000000000 +0300 +++ b/Documentation/DMA-mapping.txt 2007-08-08 12:50:02.000000000 +0300 @@ -514,7 +514,7 @@ int i, count = pci_map_sg(dev, sglist, nents, direction); struct scatterlist *sg; - for (i = 0, sg = sglist; i < count; i++, sg++) { + for_each_sg(sglist, sg, count, i) { hw_address[i] = sg_dma_address(sg); hw_len[i] = sg_dma_len(sg); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/