Commit 54ed494f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove get_current_user()

As "Dmitry A.  Fedorov" <D.A.Fedorov@inp.nsk.su> points out,
get_current_user() has a local variable __user which conflicts with the
sparse tagging.  But get_current_user() has no callers.
parent 303ef7ec
...@@ -288,11 +288,6 @@ struct user_struct { ...@@ -288,11 +288,6 @@ struct user_struct {
uid_t uid; uid_t uid;
}; };
#define get_current_user() ({ \
struct user_struct *__user = current->user; \
atomic_inc(&__user->__count); \
__user; })
extern struct user_struct *find_user(uid_t); extern struct user_struct *find_user(uid_t);
extern struct user_struct root_user; extern struct user_struct root_user;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment