Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334599
b: refs/heads/master
c: fe73fbe
h: refs/heads/master
i:
  334597: 2988ce0
  334595: f28a285
  334591: 83ecf23
v: v3
  • Loading branch information
Ming Lei authored and Linus Torvalds committed Oct 19, 2012
1 parent 9362a75 commit 66bef80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0db63d7e25f96e2c6da925c002badf6f144ddf30
refs/heads/master: fe73fbe1c5eda709084dedb66cbdd4b86826cce7
4 changes: 2 additions & 2 deletions trunk/lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket,
match_fn match)
{
struct dma_debug_entry *entry, *ret = NULL;
int matches = 0, match_lvl, last_lvl = 0;
int matches = 0, match_lvl, last_lvl = -1;

list_for_each_entry(entry, &bucket->list, list) {
if (!match(ref, entry))
Expand Down Expand Up @@ -293,7 +293,7 @@ static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket,
} else if (match_lvl > last_lvl) {
/*
* We found an entry that fits better then the
* previous one
* previous one or it is the 1st match.
*/
last_lvl = match_lvl;
ret = entry;
Expand Down

0 comments on commit 66bef80

Please sign in to comment.