mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00: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)
|
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;
|
(a->dev == b->dev)) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user