diff options
author | David Rientjes <rientjes@cs.washington.edu> | 2006-12-06 20:40:18 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:44 -0800 |
commit | a09c17a6fdad9ae5b5ea1c3383080f84ec76ab20 (patch) | |
tree | 615fb3c3ab0f74f94d2e1f70cef134ae6f266f62 | |
parent | 8de61e69c2feb10e5391cca67a3faf1d2bf77ce0 (diff) | |
download | linux-a09c17a6fdad9ae5b5ea1c3383080f84ec76ab20.tar.bz2 |
[PATCH] sys: remove unused variable
Remove unused 'new_ruid' variable.
Reported by David Binderman <dcb314@hotmail.com>.
Signed-off-by: David Rientjes <rientjes@cs.washington.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | kernel/sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index c87b461de38d..a0c1a29a507f 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1102,14 +1102,14 @@ asmlinkage long sys_setreuid(uid_t ruid, uid_t euid) asmlinkage long sys_setuid(uid_t uid) { int old_euid = current->euid; - int old_ruid, old_suid, new_ruid, new_suid; + int old_ruid, old_suid, new_suid; int retval; retval = security_task_setuid(uid, (uid_t)-1, (uid_t)-1, LSM_SETID_ID); if (retval) return retval; - old_ruid = new_ruid = current->uid; + old_ruid = current->uid; old_suid = current->suid; new_suid = old_suid; |