Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

David Rientjes and committed by
Linus Torvalds
a09c17a6 8de61e69

+2 -2
+2 -2
kernel/sys.c
··· 1102 1102 asmlinkage long sys_setuid(uid_t uid) 1103 1103 { 1104 1104 int old_euid = current->euid; 1105 - int old_ruid, old_suid, new_ruid, new_suid; 1105 + int old_ruid, old_suid, new_suid; 1106 1106 int retval; 1107 1107 1108 1108 retval = security_task_setuid(uid, (uid_t)-1, (uid_t)-1, LSM_SETID_ID); 1109 1109 if (retval) 1110 1110 return retval; 1111 1111 1112 - old_ruid = new_ruid = current->uid; 1112 + old_ruid = current->uid; 1113 1113 old_suid = current->suid; 1114 1114 new_suid = old_suid; 1115 1115