Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1487471 > unrolled thread

[PATCH] Documentation: DMA-API-HOWTO: Fix a typo

Started byAndrey Smirnov <andrew.smirnov@gmail.com>
First post2016-09-20 18:10 +0200
Last post2016-09-21 02:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Documentation: DMA-API-HOWTO: Fix a typo Andrey Smirnov <andrew.smirnov@gmail.com> - 2016-09-20 18:10 +0200
    Re: [PATCH] Documentation: DMA-API-HOWTO: Fix a typo Jonathan Corbet <corbet@lwn.net> - 2016-09-21 02:00 +0200

#1487471 — [PATCH] Documentation: DMA-API-HOWTO: Fix a typo

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2016-09-20 18:10 +0200
Subject[PATCH] Documentation: DMA-API-HOWTO: Fix a typo
Message-ID<sjvMl-5fH-5@gated-at.bofh.it>
Fix a type in example variable name.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 Documentation/DMA-API-HOWTO.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt
index 781024e..d08a56a 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
-- 
2.5.5

[toc] | [next] | [standalone]


#1487724

FromJonathan Corbet <corbet@lwn.net>
Date2016-09-21 02:00 +0200
Message-ID<sjD7b-1js-9@gated-at.bofh.it>
In reply to#1487471
On Tue, 20 Sep 2016 09:04:20 -0700
Andrey Smirnov <andrew.smirnov@gmail.com> wrote:

> -		if (dma_mapping_error(cp->dev, dma_handle)) {
> +		if (dma_mapping_error(cp->dev, mapping)) {

Interesting, that has been wrong for the entire git era; another patch
fixed that line a few years ago, but left the wrong name in place...
Applied to the docs tree, thanks.

jon

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web