Commit 7338f299 authored by Sukanto Ghosh's avatar Sukanto Ghosh Committed by Linus Torvalds
Browse files

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: default avatarSukanto Ghosh <>
Cc: Jaswinder Singh Rajput <>
Cc: Sukanto Ghosh <>
Cc: Jiri Kosina <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 81fc401e
......@@ -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))
if (neg)
val = -val;
s += len;
left -= len;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment