Skip to content

Commit

Permalink
[PATCH] sys: remove unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Dec 7, 2006
1 parent 8de61e6 commit a09c17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a09c17a

Please sign in to comment.