mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
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>
This commit is contained in:
parent
81fc401e42
commit
7338f29984
@ -2283,7 +2283,7 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
|
|||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
#define TMPBUFLEN 21
|
#define TMPBUFLEN 21
|
||||||
int *i, vleft, first=1, neg, val;
|
int *i, vleft, first = 1, neg;
|
||||||
unsigned long lval;
|
unsigned long lval;
|
||||||
size_t left, len;
|
size_t left, len;
|
||||||
|
|
||||||
@ -2336,8 +2336,6 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
|
|||||||
len = p-buf;
|
len = p-buf;
|
||||||
if ((len < left) && *p && !isspace(*p))
|
if ((len < left) && *p && !isspace(*p))
|
||||||
break;
|
break;
|
||||||
if (neg)
|
|
||||||
val = -val;
|
|
||||||
s += len;
|
s += len;
|
||||||
left -= len;
|
left -= len;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user