mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:30:53 +07:00
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>
This commit is contained in:
parent
08f2e6312c
commit
91ec37cc10
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user