diff options
| author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-11-17 14:31:02 -0500 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-21 05:35:37 -0500 |
| commit | 91ec37cc1015220965e39bf342fb846810d19e79 (patch) | |
| tree | 31dab5bfa22bcd40017fbd7a65853e5d70497aed /lib | |
| parent | 08f2e6312c67fed80df9342e06ad36daf11eb80b (diff) | |
Fix comparison using wrong pointer variable in dma debug code
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>
Diffstat (limited to 'lib')
| -rw-r--r-- | 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 74c6c7fce749..fea790a2b176 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
| @@ -245,7 +245,7 @@ static void put_hash_bucket(struct hash_bucket *bucket, | |||
| 245 | 245 | ||
| 246 | static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b) | 246 | static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b) |
| 247 | { | 247 | { |
| 248 | return ((a->dev_addr == a->dev_addr) && | 248 | return ((a->dev_addr == b->dev_addr) && |
| 249 | (a->dev == b->dev)) ? true : false; | 249 | (a->dev == b->dev)) ? true : false; |
| 250 | } | 250 | } |
| 251 | 251 | ||
