Skip to content

Commit

Permalink
Fix comparison using wrong pointer variable in dma debug code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Jarosch authored and Joerg Roedel committed Nov 21, 2011
1 parent 08f2e63 commit 91ec37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 91ec37c

Please sign in to comment.