Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158122
b: refs/heads/master
c: e9d6572
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Aug 17, 2009
1 parent defb45c commit 2d6dd89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 212274347fc4d2a7c56bf6c953b02c809e7e0be1
refs/heads/master: e9d65725bdf5954283625ca4d770bfc34f2ae56a
8 changes: 4 additions & 4 deletions trunk/kernel/lockdep_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ static void *lc_next(struct seq_file *m, void *v, loff_t *pos)
else {
chain = v;

if (*pos < nr_lock_chains)
chain = lock_chains + *pos;
if (*pos - 1 < nr_lock_chains)
chain = lock_chains + (*pos - 1);
else
chain = NULL;
}
Expand All @@ -174,8 +174,8 @@ static void *lc_start(struct seq_file *m, loff_t *pos)
if (*pos == 0)
return SEQ_START_TOKEN;

if (*pos < nr_lock_chains)
return lock_chains + *pos;
if (*pos - 1 < nr_lock_chains)
return lock_chains + (*pos - 1);

return NULL;
}
Expand Down

0 comments on commit 2d6dd89

Please sign in to comment.