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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}