public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix comparison using wrong pointer variable in dma debug code
@ 2011-11-17 19:31 Thomas Jarosch
  2011-11-17 20:01 ` Neil Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Thomas Jarosch @ 2011-11-17 19:31 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: linux-kernel

cppcheck reported:
[lib/dma-debug.c:248] -> [lib/dma-debug.c:248]: (style) Same expression on both sides of '=='.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
---
 lib/dma-debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/dma-debug.c b/lib/dma-debug.c
index 74c6c7f..fea790a 100644
--- a/lib/dma-debug.c
+++ b/lib/dma-debug.c
@@ -245,7 +245,7 @@ static void put_hash_bucket(struct hash_bucket *bucket,
 
 static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b)
 {
-	return ((a->dev_addr == a->dev_addr) &&
+	return ((a->dev_addr == b->dev_addr) &&
 		(a->dev == b->dev)) ? true : false;
 }
 
-- 
1.7.6.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-21 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 19:31 [PATCH] Fix comparison using wrong pointer variable in dma debug code Thomas Jarosch
2011-11-17 20:01 ` Neil Horman
2011-11-18 16:47   ` Thomas Jarosch
2011-11-17 20:03 ` Joe Perches
2011-11-21 10:37 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox