* [PATCH] remove val in __do_proc_dointvec
@ 2007-12-28 0:52 Tomohiro Kusumi
0 siblings, 0 replies; only message in thread
From: Tomohiro Kusumi @ 2007-12-28 0:52 UTC (permalink / raw)
To: linux-kernel
Hi
What's the purpose of the val in __do_proc_dointvec ?
It seems no one ever uses this val.
Tomohiro Kusumi
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
diff -Nur linux-2.6.23.org/kernel/sysctl.c linux-2.6.23/kernel/sysctl.c
--- linux-2.6.23.org/kernel/sysctl.c 2007-12-28 09:29:18.000000000 +0900
+++ linux-2.6.23/kernel/sysctl.c 2007-12-28 09:31:32.000000000 +0900
@@ -1716,7 +1716,7 @@
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;
@@ -1769,8 +1769,6 @@
len = p-buf;
if ((len < left) && *p && !isspace(*p))
break;
- if (neg)
- val = -val;
s += len;
left -= len;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-28 0:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28 0:52 [PATCH] remove val in __do_proc_dointvec Tomohiro Kusumi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox