* [PATCH] Documentation: DMA-API-HOWTO: Fix a typo
@ 2016-09-20 16:04 Andrey Smirnov
2016-09-20 23:59 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Andrey Smirnov @ 2016-09-20 16:04 UTC (permalink / raw)
To: linux-doc; +Cc: Jonathan Corbet, linux-kernel, Andrey Smirnov
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: DMA-API-HOWTO: Fix a typo
2016-09-20 16:04 [PATCH] Documentation: DMA-API-HOWTO: Fix a typo Andrey Smirnov
@ 2016-09-20 23:59 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2016-09-20 23:59 UTC (permalink / raw)
To: Andrey Smirnov; +Cc: linux-doc, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-20 23:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20 16:04 [PATCH] Documentation: DMA-API-HOWTO: Fix a typo Andrey Smirnov
2016-09-20 23:59 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).