提交 91ec37cc 编写于 作者: T Thomas Jarosch 提交者: Joerg Roedel

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: NThomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 08f2e631
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册