+ sys-remove-unused-variable.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     sys: remove unused variable
has been added to the -mm tree.  Its filename is
     sys-remove-unused-variable.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: sys: remove unused variable
From: David Rientjes <rientjes@xxxxxxxxxxxxxxxxx>

Remove unused 'new_ruid' variable.

Reported by David Binderman <dcb314@xxxxxxxxxxx>.

Signed-off-by: David Rientjes <rientjes@xxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/sys.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN kernel/sys.c~sys-remove-unused-variable kernel/sys.c
--- a/kernel/sys.c~sys-remove-unused-variable
+++ a/kernel/sys.c
@@ -1102,14 +1102,14 @@ asmlinkage long sys_setreuid(uid_t ruid,
 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;
 	
_

Patches currently in -mm which might be from rientjes@xxxxxxxxxxxxxxxxx are

i386-msr-remove-unused-variable.patch
memory-page_alloc-zonelist-caching-speedup.patch
fs-remove-unused-variable.patch
sys-remove-unused-variable.patch
video-sis-remove-unnecessary-variables-in-sis_ddc2delay.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux