patch-2.4.22 linux-2.4.22/arch/x86_64/kernel/pci-dma.c
Next file: linux-2.4.22/arch/x86_64/kernel/pci-gart.c
Previous file: linux-2.4.22/arch/x86_64/kernel/mpparse.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/x86_64/kernel/pci-dma.c
- Orig date:
2003-06-13 07:51:32.000000000 -0700
diff -urN linux-2.4.21/arch/x86_64/kernel/pci-dma.c linux-2.4.22/arch/x86_64/kernel/pci-dma.c
@@ -37,7 +37,6 @@
*/
for (i = 0; i < nents; i++ ) {
struct scatterlist *s = &sg[i];
- int flush = (i == nents-1);
void *addr = s->address;
if (addr)
BUG_ON(s->page || s->offset);
@@ -45,8 +44,7 @@
addr = page_address(s->page) + s->offset;
else
BUG();
- s->dma_address = __pci_map_single(hwdev, addr, s->length,
- direction, flush);
+ s->dma_address = pci_map_single(hwdev, addr, s->length, direction);
if (unlikely(s->dma_address == bad_dma_address))
goto error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)