summaryrefslogtreecommitdiffstats
path: root/Documentation/DMA-API-HOWTO.txt
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-09-20 18:04:20 +0200
committerJonathan Corbet <corbet@lwn.net>2016-09-21 01:58:46 +0200
commitbe6c30956fa3dff2658c5ede40c80e461e2124ff (patch)
tree6c4875087e7d6fc7851278be6f414bbce6e78f73 /Documentation/DMA-API-HOWTO.txt
parentMerge branch 'driver-api' into doc/4.9 (diff)
downloadlinux-be6c30956fa3dff2658c5ede40c80e461e2124ff.tar.xz
linux-be6c30956fa3dff2658c5ede40c80e461e2124ff.zip
Documentation: DMA-API-HOWTO: Fix a typo
Fix a type in example variable name. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/DMA-API-HOWTO.txt')
-rw-r--r--Documentation/DMA-API-HOWTO.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt
index 494ffac655ee..979228bc9035 100644
--- a/Documentation/DMA-API-HOWTO.txt
+++ b/Documentation/DMA-API-HOWTO.txt
@@ -699,7 +699,7 @@ to use the dma_sync_*() interfaces.
dma_addr_t mapping;
mapping = dma_map_single(cp->dev, buffer, len, DMA_FROM_DEVICE);
- if (dma_mapping_error(cp->dev, dma_handle)) {
+ if (dma_mapping_error(cp->dev, mapping)) {
/*
* reduce current DMA mapping usage,
* delay and try again later or