Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65032
b: refs/heads/master
c: d8a4821
h: refs/heads/master
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Linus Torvalds committed Sep 19, 2007
1 parent 92fc1ed commit 239828f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: ef2b02d3e617cb0400eedf2668f86215e1b0e6af
refs/heads/master: d8a4821dca693867a7953104c1e3cc830eb9191f
8 changes: 2 additions & 6 deletions trunk/kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,9 @@ static inline void uid_hash_remove(struct user_struct *up)

static inline struct user_struct *uid_hash_find(uid_t uid, struct list_head *hashent)
{
struct list_head *up;

list_for_each(up, hashent) {
struct user_struct *user;

user = list_entry(up, struct user_struct, uidhash_list);
struct user_struct *user;

list_for_each_entry(user, hashent, uidhash_list) {
if(user->uid == uid) {
atomic_inc(&user->__count);
return user;
Expand Down

0 comments on commit 239828f

Please sign in to comment.