Documentation: DMA-API-HOWTO: Fix a typo
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Tue, 20 Sep 2016 16:04:20 +0000 (09:04 -0700)
committerJonathan Corbet <corbet@lwn.net>
Tue, 20 Sep 2016 23:58:46 +0000 (17:58 -0600)
Fix a type in example variable name.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/DMA-API-HOWTO.txt

index 494ffac655eee94d4d23c776a21c98ecb93d3251..979228bc9035ca35463a6adfb9db2a7c9f40f9a1 100644 (file)
@@ -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