diff options
Diffstat (limited to 'kernel/sysctl.c')
-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 | ||