Skip to content
Snippets Groups Projects
Commit 91ec37cc authored by Thomas Jarosch's avatar Thomas Jarosch Committed by Joerg Roedel
Browse files

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: default avatarThomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 08f2e631
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment