From: Andrey Smirnov Date: Tue, 20 Sep 2016 16:04:20 +0000 (-0700) Subject: Documentation: DMA-API-HOWTO: Fix a typo X-Git-Tag: Ubuntu-5.10.0-12.13~11777^2~49 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=be6c30956fa3dff2658c5ede40c80e461e2124ff;p=mirror_ubuntu-hirsute-kernel.git Documentation: DMA-API-HOWTO: Fix a typo Fix a type in example variable name. Signed-off-by: Andrey Smirnov Signed-off-by: Jonathan Corbet --- 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