Commit 91ec37cc1015220965e39bf342fb846810d19e79

Authored by Thomas Jarosch
Committed by Joerg Roedel
1 parent 08f2e6312c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -245,7 +245,7 @@
245 245  
246 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 249 (a->dev == b->dev)) ? true : false;
250 250 }
251 251