sysctl.c: remove unused variable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, June 18, 2009 - 3:00 pm

Gitweb:     http://git.kernel.org/linus/7338f29984114066b00da343a22876bb08259a84
Commit:     7338f29984114066b00da343a22876bb08259a84
Parent:     81fc401e426e8a4c719035ef86d051bd0d1111e5
Author:     Sukanto Ghosh <sukanto.cse.iitb@gmail.com>
AuthorDate: Wed Jun 17 16:27:50 2009 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Thu Jun 18 13:03:54 2009 -0700

    sysctl.c: remove unused variable
    
    Remoce the unused variable 'val' from __do_proc_dointvec()
    
    The integer has been declared and used as 'val = -val' and there is no
    reference to it anywhere.
    
    Signed-off-by: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>
    Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
    Cc: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>
    Cc: Jiri Kosina <jkosina@suse.cz>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 kernel/sysctl.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index ab462b9..62e4ff9 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -2283,7 +2283,7 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
 		  void *data)
 {
 #define TMPBUFLEN 21
-	int *i, vleft, first=1, neg, val;
+	int *i, vleft, first = 1, neg;
 	unsigned long lval;
 	size_t left, len;
 	
@@ -2336,8 +2336,6 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
 			len = p-buf;
 			if ((len < left) && *p && !isspace(*p))
 				break;
-			if (neg)
-				val = -val;
 			s += len;
 			left -= len;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sysctl.c: remove unused variable, Linux Kernel Mailing ..., (Thu Jun 18, 3:00 pm)