diff options
author | Sukanto Ghosh <sukanto.cse.iitb@gmail.com> | 2009-06-17 19:27:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:54 -0400 |
commit | 7338f29984114066b00da343a22876bb08259a84 (patch) | |
tree | 639fa2c3bae7a8501ca232c9df905c07de153314 | |
parent | 81fc401e426e8a4c719035ef86d051bd0d1111e5 (diff) |
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>
-rw-r--r-- | kernel/sysctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index ab462b9968d5..62e4ff9968b5 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, | |||
2283 | void *data) | 2283 | void *data) |
2284 | { | 2284 | { |
2285 | #define TMPBUFLEN 21 | 2285 | #define TMPBUFLEN 21 |
2286 | int *i, vleft, first=1, neg, val; | 2286 | int *i, vleft, first = 1, neg; |
2287 | unsigned long lval; | 2287 | unsigned long lval; |
2288 | size_t left, len; | 2288 | size_t left, len; |
2289 | 2289 | ||
@@ -2336,8 +2336,6 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table, | |||
2336 | len = p-buf; | 2336 | len = p-buf; |
2337 | if ((len < left) && *p && !isspace(*p)) | 2337 | if ((len < left) && *p && !isspace(*p)) |
2338 | break; | 2338 | break; |
2339 | if (neg) | ||
2340 | val = -val; | ||
2341 | s += len; | 2339 | s += len; |
2342 | left -= len; | 2340 | left -= len; |
2343 | 2341 | ||