mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
8de61e69c2
commit
a09c17a6fd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue