projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f2e63
)
Fix comparison using wrong pointer variable in dma debug code
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 17 Nov 2011 19:31:02 +0000
(20:31 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 21 Nov 2011 10:35:37 +0000
(11:35 +0100)
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>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
lib/dma-debug.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/dma-debug.c
b/lib/dma-debug.c
index 74c6c7fce74900ec9870a15313268c87f9e1ecc3..fea790a2b17659e9b701987101db7929bdfbe8df 100644
(file)
--- 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;
}