aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/user.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/user.c b/kernel/user.c
index e7d11cef6998..e080ba863ae3 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -67,13 +67,9 @@ static inline void uid_hash_remove(struct user_struct *up)
67 67
68static inline struct user_struct *uid_hash_find(uid_t uid, struct list_head *hashent) 68static inline struct user_struct *uid_hash_find(uid_t uid, struct list_head *hashent)
69{ 69{
70 struct list_head *up; 70 struct user_struct *user;
71
72 list_for_each(up, hashent) {
73 struct user_struct *user;
74
75 user = list_entry(up, struct user_struct, uidhash_list);
76 71
72 list_for_each_entry(user, hashent, uidhash_list) {
77 if(user->uid == uid) { 73 if(user->uid == uid) {
78 atomic_inc(&user->__count); 74 atomic_inc(&user->__count);
79 return user; 75 return user;