Skip to content

Commit 91ec37c

Browse files
thomasjfoxjoergroedel
authored andcommitted
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>
1 parent 08f2e63 commit 91ec37c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/dma-debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static void put_hash_bucket(struct hash_bucket *bucket,
245245

246246
static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b)
247247
{
248-
return ((a->dev_addr == a->dev_addr) &&
248+
return ((a->dev_addr == b->dev_addr) &&
249249
(a->dev == b->dev)) ? true : false;
250250
}
251251

0 commit comments

Comments
 (0)